Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        allWorms = new List <WormControl>();

        ourCamera = FindObjectOfType <mainCameraScript>();


        numTeams        = 4;
        numWormsPerTeam = 4;
        allTeams        = new List <Team>();

        for (int teamId = 0; teamId < numTeams; teamId++)
        {
            allTeams.Add(new Team(teamId, numWormsPerTeam));
        }



        spawnWorms();

        foreach (Team team in allTeams)
        {
            team.updateWormColours();
        }
    }
Exemplo n.º 2
0
    int totalLevels = 3; // change this value if more levels are created

    void Start()
    {
        timerScript = GetComponent <mainCameraScript>();
    }
Exemplo n.º 3
0
 void Start()
 {
     timerScript = GetComponent<mainCameraScript>();
 }