Exemplo n.º 1
0
 public SubPhaseController(PhaseController mainPhaseController)
 {
     parentController = mainPhaseController;
     SetSubPhase(SubPhase.NEUTRAL);
     GameEvents.instance.onDeployModeRequested += EnableDeployMode;
     GameEvents.instance.onUnitDeployed        += DisableDeployMode;
 }
Exemplo n.º 2
0
        // Start is called before the first frame update, all monobehaviours that subscribe to phaseController should do so in Awake()
        void Start()
        {
            Debug.Log("Game Start");

            //Players are initialized here to ensure that deck and hand monobehaviours are ready
            _player.InitPlayer();
            _opponent.InitPlayer();

            //Deploys the leader units for both decks onto the field
            _playerField.DeployLeader(_player.Leader);
            _oppField.DeployLeader(_opponent.Leader);

            //Begin phase processing
            phaseController = new PhaseController(_player, _opponent);
        }
Exemplo n.º 3
0
 public DrawPhaseTask(PhaseController phaseController)
 {
     GameEvents.instance.onPhaseStarted += StartTask;
 }
Exemplo n.º 4
0
 public BeginPhaseTask(PhaseController controller)
 {
     this.controller = controller;
     GameEvents.instance.onPhaseStarted += StartTask;
 }