Пример #1
0
 public static void PlayTestScene()
 {
     TrajectoryDetector.Reset();
     HandUpDetector.Reset();
     GrabDetector.Reset();
     UpdateSender.Reset();
     SceneManager.LoadScene("Test Chamber");
 }
Пример #2
0
 public static void Reload()
 {
     TrajectoryDetector.Reset();
     HandUpDetector.Reset();
     GrabDetector.Reset();
     UpdateSender.Reset();
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
 }
Пример #3
0
 public static void PlayMainScene()
 {
     TrajectoryDetector.Reset();
     HandUpDetector.Reset();
     GrabDetector.Reset();
     UpdateSender.Reset();
     SceneManager.LoadScene("Main");
 }
Пример #4
0
        /// <summary>
        /// Makes the gameobject send Start() and Update() methods to this class to MonoUpdate and MonoStart
        /// </summary>
        protected void AddMonoReceiver(GameObject obj)
        {
            UpdateSender us = obj.GetComponent <UpdateSender>();

            if (us == null)
            {
                Debug.LogWarning("a projectile doesnt have UpdateSender " + GetName() + "; adding it automatically");
                obj.AddComponent <UpdateSender>().target = this;
            }
            else
            {
                us.target = this;
            }
        }