コード例 #1
0
        public override IEnumerator Start()
        {
            Debug.Log("Fortify State Active.");

            BattleSystem.UnitInterface.SetActive(false);
            BattleSystem.SelectedUnit.OnFortify(3);
            BattleSystem.SetState(new PlayerTurn(BattleSystem));
            yield return(new WaitForSeconds(0f));
        }
コード例 #2
0
        public override IEnumerator Start()
        {
            Debug.Log("Begin State Active.");
            BattleSystem.Interface.SetCurrentPlayer(BattleSystem.CurrentPlayer);
            BattleSystem.Interface.UpdateTurnText(BattleSystem.CurrentTurn);

            yield return(new WaitForSeconds(1f));

            BattleSystem.SetState(new PlayerTurn(BattleSystem));
        }
コード例 #3
0
        public override IEnumerator Start()
        {
            Debug.Log("Move State Active.");

            BattleSystem.UnitInterface.SetActive(false);
            if (!BattleSystem.SelectedUnit.CanMove())
            {
                Debug.Log("Unit can't move this turn.");
                BattleSystem.SetState(new PlayerTurn(BattleSystem));
            }

            yield return(new WaitForSeconds(0f));
        }
コード例 #4
0
ファイル: SelectedUnit.cs プロジェクト: noesmos/BF2
        public override IEnumerator Fortify(Tile tile)
        {
            yield return(new WaitForSeconds(0f));

            BattleSystem.SetState(new Fortify(BattleSystem));
        }
コード例 #5
0
        public virtual IEnumerator Player()
        {
            yield return(new WaitForSeconds(0f));

            BattleSystem.SetState(new PlayerTurn(BattleSystem));
        }
コード例 #6
0
ファイル: PlayerTurn.cs プロジェクト: noesmos/BF2
        public override IEnumerator Unit()
        {
            yield return(new WaitForSeconds(0f));

            BattleSystem.SetState(new SelectedUnit(BattleSystem));
        }
コード例 #7
0
ファイル: SelectedBuilding.cs プロジェクト: noesmos/BF2
        public override IEnumerator Building()
        {
            BattleSystem.SetState(new SelectedBuilding(BattleSystem));

            yield return(new WaitForSeconds(0f));
        }