Пример #1
0
 public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     if (scene.name == "World_scene")
     {
         m_timer          = new TimerUtil();
         m_timer.Interval = (double)m_secondsLeft;
         m_timerText.text = m_timer.GetMinutesString(0.0);
         m_timer.Elapsed += OnElapsedTimer;
         m_timer.Start();
         m_timer.Enabled   = true;
         m_timer.AutoReset = false;
         GameManagerResourcers.Instance.spawnTargets();
         GameManagerResourcers.Instance.SpawnOwnVehicle();
         isGameStarted = true;
     }
 }