// Use this for initialization void Start() { // dimAllTexure.enabled = true; // dimAllTexure.pixelInset = new Rect (0,0,Screen.width,Screen.height); // Debug.Log ("DIM ALL TEXTURE: " + dimAllTexure.enabled); // setup overlay overlay.pixelInset = new Rect(0, 0, Screen.width, Screen.height); overlay.enabled = false; tutorialArray = new string[9]; tutorialArray [0] = "Remove any reflective jewelry.\nOpen your hand, keep your fingers loose and spread apart."; tutorialArray [1] = "Place your open hand in the center and move it towards the LEAP device.\nRemember to keep your fingers spread apart."; tutorialArray [2] = "Move your hand away from the LEAP device to steer right"; tutorialArray [3] = "Move your hand towards the LEAP device to steer left"; tutorialArray [4] = "Move your hand higher to pivot upward"; tutorialArray [5] = "Move your hand lower to pivot downward"; tutorialArray [6] = "Gently swipe your hand back and forth to move forward"; tutorialArray [7] = "Make a fist to stop moving"; tutorialArray [8] = "You're all set! Have fun exploring!"; index = 0; // set feedback position UpdateText(index); // index starts at 0 feedback.enabled = false; // set up HUD hud = GetComponent <LEAP_HUD> (); }
void Start() { // HUD hud = GetComponent <LEAP_HUD> (); // set up LEAP controller = new Controller(); controller.EnableGesture(Gesture.GestureType.TYPESWIPE); controller.Config.SetFloat("Gesture.Swipe.MinVelocity", 500f); controller.Config.SetFloat("Gesture.Swipe.MinLength", 10f); controller.Config.Save(); // set control area SetupLEAP(); }
void Start () { // HUD hud = GetComponent<LEAP_HUD> (); tut = GetComponent<Tutorial> (); //Position Tutorial Controls Image //float controlsXPos = (UnityEngine.Screen.width/2)-640; controls.pixelInset = new Rect(UnityEngine.Screen.width/2-640,UnityEngine.Screen.height/2-360,1280,720); // set up LEAP controller = new Controller(); controller.EnableGesture (Gesture.GestureType.TYPESWIPE); controller.Config.SetFloat("Gesture.Swipe.MinVelocity", 10f); controller.Config.SetFloat("Gesture.Swipe.MinLength", 3f); controller.Config.Save(); // set control area SetupLEAP (); tut.SetArea (top_box, right_box, bottom_box, left_box); // pass dimensions to tutorial // setup controls image helper if (controls.enabled) controls.enabled = false; }
// Use this for initialization void Start() { // dimAllTexure.enabled = true; // dimAllTexure.pixelInset = new Rect (0,0,Screen.width,Screen.height); // Debug.Log ("DIM ALL TEXTURE: " + dimAllTexure.enabled); // setup overlay overlay.pixelInset = new Rect (0, 0, Screen.width, Screen.height); overlay.enabled = false; tutorialArray = new string[9]; tutorialArray [0] = "Remove any reflective jewelry.\nOpen your hand, keep your fingers loose and spread apart."; tutorialArray [1] = "Place your open hand in the center and move it towards the LEAP device.\nRemember to keep your fingers spread apart."; tutorialArray [2] = "Move your hand away from the LEAP device to steer right"; tutorialArray [3] = "Move your hand towards the LEAP device to steer left"; tutorialArray [4] = "Move your hand higher to pivot upward"; tutorialArray [5] = "Move your hand lower to pivot downward"; tutorialArray [6] = "Gently swipe your hand back and forth to move forward"; tutorialArray [7] = "Make a fist to stop moving"; tutorialArray [8] = "You're all set! Have fun exploring!"; index = 0; // set feedback position UpdateText (index); // index starts at 0 feedback.enabled = false; // set up HUD hud = GetComponent<LEAP_HUD> (); }
void Start() { // HUD hud = GetComponent<LEAP_HUD> (); tut = GetComponent<Tutorial> (); //Position Tutorial Controls Image //float controlsXPos = (UnityEngine.Screen.width/2)-640; controls.pixelInset = new Rect(UnityEngine.Screen.width/2-640,UnityEngine.Screen.height/2-360,1280,720); // set up LEAP controller = new Controller(); controller.EnableGesture (Gesture.GestureType.TYPESWIPE); controller.Config.SetFloat("Gesture.Swipe.MinVelocity", 10f); controller.Config.SetFloat("Gesture.Swipe.MinLength", 3f); controller.Config.Save(); // set control area SetupLEAP (); tut.SetArea (top_box, right_box, bottom_box, left_box); // pass dimensions to tutorial // setup controls image helper if (controls.enabled) controls.enabled = false; }