public static void PlayTestScene() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene("Test Chamber"); }
public static void Reload() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene(SceneManager.GetActiveScene().name); }
public static void PlayMainScene() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene("Main"); }
/// <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; } }