示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(slingScript.launchButton) && !slingScript.launched)
     {
         slingScript.Launch();
     }
     if (Input.GetKeyDown(KeyCode.F5))
     {
         Application.LoadLevel(Application.loadedLevelName);
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (controller.GetPressDown(trigger) && !slingScript.launched)
     {
         slingScript.Launch();
     }
     if (controller.GetPressDown(touchPad))
     {
         Application.LoadLevel(Application.loadedLevelName);
     }
 }