private void Awake() { territoryManager = gameObject.GetComponent <TerritoryManager>(); playerManager = gameObject.GetComponent <PlayerManager>(); factionManager = gameObject.GetComponent <FactionManager>(); playerManager.m_territoryManager = territoryManager; AddEndGameTimerListener(EndGame); Timer timerGame = gameObject.AddComponent <Timer>(); LaunchGameTimer(endTime, timerGame); timerGame.StartTimer(); Territory.AddPlayerListener(PlayerIsOnTerritory); timerRed = gameObject.AddComponent <Timer>(); timerBlue = gameObject.AddComponent <Timer>(); timerGreen = gameObject.AddComponent <Timer>(); timerYellow = gameObject.AddComponent <Timer>(); timerRed.LoadTimer(60f, GlassWin); timerBlue.LoadTimer(60f, GlassWin); timerGreen.LoadTimer(60f, GlassWin); timerYellow.LoadTimer(60f, GlassWin); }