public SubPhaseController(PhaseController mainPhaseController) { parentController = mainPhaseController; SetSubPhase(SubPhase.NEUTRAL); GameEvents.instance.onDeployModeRequested += EnableDeployMode; GameEvents.instance.onUnitDeployed += DisableDeployMode; }
// 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); }
public DrawPhaseTask(PhaseController phaseController) { GameEvents.instance.onPhaseStarted += StartTask; }
public BeginPhaseTask(PhaseController controller) { this.controller = controller; GameEvents.instance.onPhaseStarted += StartTask; }