// 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); } }
// Update is called once per frame void Update() { if (controller.GetPressDown(trigger) && !slingScript.launched) { slingScript.Launch(); } if (controller.GetPressDown(touchPad)) { Application.LoadLevel(Application.loadedLevelName); } }