public static GetSceneObject GetInstance() { if (!_instance) { _instance = (GetSceneObject)GameObject.FindObjectOfType(typeof(GetSceneObject)); } return(_instance); }
// Update is called once per frame void FixedUpdate() { if (Input.GetKey("w")) { OnGestureRecognized(Scene.scenestart); } //GestureController.GetInstance ().RecognizeGesture (presentScene); if (GetSceneObject.GetInstance().ReturnSceneController(presentScene).IsPlayingScene()) { if (timeDownCount > 0) { timeDownCount--; } else { timeDownCount = timeDown; //Rollback(); } } }
public void StopScene(Scene s) { GetSceneObject.GetInstance().ReturnSceneController(s).StopScene(); }
public void DisplayScene(Scene s) { StopScene(s); GetSceneObject.GetInstance().ReturnSceneController(s).PlayScene(); }