コード例 #1
0
    private void Awake()
    {
        startCombatState = new StartCombat(this);
        playerTurnState  = new PlayerTurn(this);
        enemyTurnState   = new EnemyTurn(this);
        battleLostState  = new BattleLost(this);
        battleWonState   = new BattleWon(this);
        blankState       = new BlankState(this);
        currentState     = blankState;

        missionButtonArray = GameObject.FindGameObjectsWithTag("MissionButton");
    }
コード例 #2
0
    private void Awake()
    {
        startCombatState = new StartCombat(this);
        playerTurnState = new PlayerTurn(this);
        enemyTurnState = new EnemyTurn(this);
        battleLostState = new BattleLost(this);
        battleWonState = new BattleWon(this);
        blankState = new BlankState(this);
        currentState = blankState;

        missionButtonArray = GameObject.FindGameObjectsWithTag("MissionButton");
    }