示例#1
0
 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();
         }
     }
 }
示例#3
0
 public void StopScene(Scene s)
 {
     GetSceneObject.GetInstance().ReturnSceneController(s).StopScene();
 }
示例#4
0
 public void DisplayScene(Scene s)
 {
     StopScene(s);
     GetSceneObject.GetInstance().ReturnSceneController(s).PlayScene();
 }