private void Awake() { territoryManager = gameObject.GetComponent <TerritoryManager>(); playerManager = gameObject.GetComponent <PlayerManager>(); factionManager = gameObject.GetComponent <FactionManager>(); playerManager.m_territoryManager = territoryManager; AddEndGameTimerListener(EndGame); timerGame = gameObject.AddComponent <Timer>(); LaunchGameTimer(endTime, timerGame); timerGame.StartTimer(); Territory.AddPlayerCenterListener(PlayerIsOnTerritory); Territory.AddPlayerOutListener(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); }