Exemple #1
0
    public void addToPlayerTeam()
    {
        OrbController orb = spawnOrb();

        orb.setTeam(0);
        playerTeam.Add(orb);
    }
Exemple #2
0
    void addToAITeam()
    {
        //Team A
        OrbController orbA = spawnOrb();

        orbA.setTeam(1);
        orbA.LevelUpAI(currentAILevel);
        aTeam.Add(orbA);

        //Team B
        OrbController orbB = spawnOrb();

        orbB.setTeam(2);
        orbB.LevelUpAI(currentAILevel);
        bTeam.Add(orbB);
    }