Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     //init player
     player = GameObject.FindGameObjectWithTag("Player");
     //init controller
     controller = new gameController(groundsize, player, numberOfPuzzle, gg);
     controller.CreateEnvironment();
     hands = new handController(controller, sphere1, sphere2, sphere3, sphere4, xtxt, ytxt, ztxt, wtxt);
     CreateBoard();
 }
Esempio n. 2
0
 public handController(gameController game, GameObject sph1, GameObject sph2, GameObject sph3, GameObject sph4, UnityEngine.UI.Text xt, UnityEngine.UI.Text yt, UnityEngine.UI.Text zt, UnityEngine.UI.Text wt)
 {
     menu         = GameObject.Find("menu");
     leapspace    = GameObject.Find("LeapSpace");
     controller   = new Leap.Controller();
     camera       = GameObject.Find("CenterEyeAnchor").GetComponent <Camera>();
     gamer        = game;
     debug1       = DrawLine(Vector3.zero, Vector3.zero, Color.white, 0.05f);
     debug2       = DrawLine(Vector3.zero, Vector3.zero, Color.white, 0.05f);
     sphereswitch = sph1;
     sphererand   = sph2;
     sphereexpand = sph3;
     spheresmall  = sph4;
     txt1         = xt;
     txt2         = yt;
     txt3         = zt;
     txt4         = wt;
     getctr       = this;
 }