コード例 #1
0
    private void PassUnit()
    {
        // End game if end condition met
        int endState = battle.GetEndState();

        if (endState != -1)
        {
            OnEndBattle(endState);
            return;
        }

        // Go to Next Unit
        battle.NextCurrentUnit();

        if (battle.currentUnit.team == 0)
        {
            onUnitCommands = true;
            whileAIControl = false;
        }
        else
        {
            onUnitCommands           = false;
            whileAIControl           = true;
            battle.isControllingUnit = true;
            battle.controlTime       = 0;
        }

        cam.SetMenuMode(true);
        ResetWandToUnit();
    }