// 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(); } }
int totalLevels = 3; // change this value if more levels are created void Start() { timerScript = GetComponent <mainCameraScript>(); }
void Start() { timerScript = GetComponent<mainCameraScript>(); }