public static void PlayTestScene() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene("Test Chamber"); }
public static void PlayMainScene() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene("Main"); }
public static void Reload() { TrajectoryDetector.Reset(); HandUpDetector.Reset(); GrabDetector.Reset(); UpdateSender.Reset(); SceneManager.LoadScene(SceneManager.GetActiveScene().name); }
// Start is called before the first frame update protected virtual void Start() { Keys = gameObject.GetComponent <GenericInput>(); Stats = gameObject.GetComponent <GenericStats>(); Anim = gameObject.GetComponent <GenericAnimator>(); _rb = gameObject.GetComponent <Rigidbody>(); ItemD = gameObject.GetComponentInChildren <GrabDetector>(); GlobalOrientation = GameObject.Find("GlobalOri").transform; Keys.ActivateGrav = true; Stats.Friction = 1; Stats.GravScale = 1; }
// Use this for initialization void Start() { detector = this; }