示例#1
0
 // Use this for initialization
 void Start()
 {
     hUtil          = new HandsUtil();
     leapcontroller = new Leap.Controller();
     frame          = leapcontroller.Frame();
     HUDMgr         = GameObject.Find("Managers").GetComponent <HUDManager>();
     dcg            = GameObject.Find("DCG").GetComponent <DCGBase>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     this.importButtons = GenerateImportList();
     hUtil          = new HandsUtil();
     leapcontroller = new Leap.Controller();
     frame          = leapcontroller.Frame();
     HUDMgr         = GameObject.Find("Managers").GetComponent <HUDManager>();
     dcg            = GameObject.Find("DCG").GetComponent <DCGBase>();
     base.Start();
 }
 // Use this for initialization
 void Start()
 {
     rightPoints     = new List <Vector3> ();
     leftPoints      = new List <Vector3> ();
     util            = new HandsUtil();
     finalPoints     = new List <Vector3>();
     backFacePoints  = new List <Point>();
     frontFacePoints = new List <Point>();
     type            = false;
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     HUD            = GameObject.Find("Managers").GetComponent <HUDManager>();
     controller     = GameObject.Find("LoPoly_Rigged_Hand_Right").GetComponent <handController>();
     hUtil          = new HandsUtil();
     leapcontroller = new Leap.Controller();
     frame          = leapcontroller.Frame();
     HUDMgr         = GameObject.Find("Managers").GetComponent <HUDManager>();
     dcg            = GameObject.Find("DCG").GetComponent <DCGBase>();
     base.Start();
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     util              = new HandsUtil();
     frameQueue        = new Queue <FrameInformation>();
     currentFrame      = new FrameInformation();
     tapCooldownTime   = Time.time;
     swipeCooldownTime = Time.time;
     forming           = false;
     if (handedness == "Right")
     {
         palmDirectorRight.OnActivate.AddListener(freeFormRight);
         palmDirectorLeft.OnActivate.AddListener(freeFormLeft);
         palmDirectorRightUp.OnActivate.AddListener(freeFormEndRight);
         palmDirectorLeftUp.OnActivate.AddListener(freeFormEndLeft);
         PinchDetectorInitRight();
         gunReady.OnActivate.AddListener(CockGun);
         gunFire.OnActivate.AddListener(FireGun);
     }
 }
示例#6
0
    // Use this for initialization
    void Start()
    {
        leapcontroller = new Leap.Controller();
        frame          = leapcontroller.Frame();

        util = new HandsUtil();

        frames    = HUDObject.transform.Find("Frames").gameObject;
        mainFrame = frames.transform.Find("MainFrame").GetComponent <HUDFrame>();

        // create the frameStack and initialize it with the mainFrame
        frameStack = new Stack <HUDFrame>();
        frameStack.Push(mainFrame);

        hudActive = true;

        // initialize HUDColor to gray
        HUDColor       = new Color(0.345f, 0.3568f, 0.3804f, 1.0f);
        anchor.Anchor += Placement;
        placed         = false;

        hudManager = this;
    }