예제 #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);
     }
 }