123456789101112131415161718 |
- using UnityEngine;
- namespace FrameWorkDesign.Example
- {
- public struct KillEnemyCommand : ICommand
- {
- public void Execute()
- {
- GameModel.killCount.Value++;
- Debug.Log(GameModel.killCount.Value);
- if (GameModel.killCount.Value == 6)
- {
- GamePassEvent.Trigger();
- }
- }
- }
- }
|