Beispiel #1
0
    public void changeActiveTeam(int pindex)
    {
        activeTeam = teams[pindex];

        //Reset movement for all units
        foreach (Unit unit in activeTeam.units)
        {
            unit.ResetSpeed();
            unit.actionPossible = true;
        }

        if (activeTeam.GetTeamType() == Team.Type.AI)
        {
            activeTeam.AIInterraction();
            nextActiveTeam();
        }
    }