// Use this for initialization void Start() { skeletonWrapper = GameObject.Find("KinectPrefab(Clone)").GetComponent<SkeletonWrapper>(); kinectPointController = gameObject.GetComponent<KinectPointController>(); kinectPointController.sw = skeletonWrapper; }
public void Start() { bodySourceManager = GameObject.FindObjectOfType <BodySourceManager>(); startPosition = transform.position; rpm = this.GetComponent <RecordedPointMan>(); kpc = GameObject.FindObjectOfType <KinectPointController>(); }
// Use this for initialization void Start() { kpc = gameObject.GetComponent<KinectPointController> (); handRight = kpc.Hand_Right; handLeft = kpc.Hand_Left; hip = kpc.Hip_Center; head = kpc.Head; }
void Start() { kinectPointController = GameObject.Find("KinectPointMan").GetComponent <KinectPointController>(); kinecAction = GameObject.Find("B20_Ch_01_Avatar").GetComponent <KinecAction>(); canHit = GameObject.Find("PlayerTennisBat").GetComponent <TennisBat>(); infoMessage = GameObject.Find("InfoMessage").GetComponent <Text>(); animator = GameObject.Find("B20_Ch_01_Avatar").GetComponent <Animator>(); transform = gameObject.GetComponent <Transform>(); rigidbody = gameObject.GetComponent <Rigidbody>(); drog = this.GetComponent <Rigidbody>().drag; startPosition = new Vector3(-0.84f, 1.15f, 9.62f); transform.position = startPosition; game = GameObject.Find("MainCamera").GetComponent <Game>(); start = GameObject.Find("GameStart"); news = GameObject.Find("GameNew"); }
void Start() { animator = GameObject.Find("Robot").GetComponent <Animator>(); playerHit = GameObject.Find("PlayerTennisBats").GetComponent <TennisBat>(); game = GameObject.Find("MainCamera").GetComponent <Game>(); kinectPointController = GameObject.Find("KinectPointMan").GetComponent <KinectPointController>(); kinecAction = GameObject.Find("Robot").GetComponent <KinecT>(); rigidbody = gameObject.GetComponent <Rigidbody>(); transform = this.GetComponent <Transform>(); drog = this.GetComponent <Rigidbody>().drag; robotGame = GameObject.Find("RobotGame").GetComponent <Text>(); robotSet = GameObject.Find("RobotSet").GetComponent <Text>(); playerGame = GameObject.Find("PlayerGame").GetComponent <Text>(); playerSet = GameObject.Find("PlayerSet").GetComponent <Text>(); startPosition = new Vector3(-0.37f, 0.56f, 9.96f); playerServePos = new Vector3(0.54f, 0.92f, -7.88f); this.transform.position = startPosition; }
void Start() { projectiles = new GameObject ("Projectiles"); controller = this.GetComponent<KinectPointController> (); }
// Use this for initialization void Start() { kpc = gameObject.GetComponentInParent<KinectPointController> (); }
// Use this for initialization void Start() { controller = this.GetComponent<KinectPointController>(); camera = GameObject.Find("CameraRight"); GameObject guiTutorial = GameObject.Find ("GUI-Tutorial"); if (guiTutorial != null) tutorialScript = guiTutorial.GetComponent<Tutorial> (); GameObject gui = Utilities.FindGameObject("GUI"); if(gui != null) guiScript = gui.GetComponent<GUIScript>(); hip = controller.Hip_Center; //KinectPointController startPos = this.transform.position; speed = 0.0f; }
void Start() { game = GameObject.Find("MainCamera").GetComponent <Game>(); kinect = GameObject.Find("KinectPointMan").GetComponent <KinectPointController>(); }
/****************************/ /* Fonctions pour Unity3D */ /****************************/ // ------------------------ Start ------------------------ // void Start() { GoBackToMenu(); kinect = Instantiate(kinectPrefab); kinectPointController = Instantiate(kinectPointControllerPrefab); KinectManager.Instance.onPlayerMovementRightEvent += displayTextRight; KinectManager.Instance.onPlayerMovementLeftEvent += displayTextLeft; KinectManager.Instance.onPlayerMovementUpEvent += displayTextUp; difficultylvl = 1; }
public void Start() { gui = Utilities.FindGameObject("GUI"); kinect = GameObject.Find("Player").GetComponent<KinectPointController>(); GameObject sara = GameObject.Find("Sara"); sara.transform.Rotate(Vector3.left, 90); sara.transform.position += new Vector3(0,9,0); camera = GameObject.Find("CameraRight"); animator = sara.GetComponent<Animator> (); rightHandTrigger = Animator.StringToHash("right"); leftHandTrigger = Animator.StringToHash("left"); bothHandTrigger = Animator.StringToHash("both"); turnHorizontalTrigger = Animator.StringToHash("horizontal"); turnVerticalTrigger = Animator.StringToHash("vertical"); idleTrigger = Animator.StringToHash("idle"); GameObject player = GameObject.Find("Player"); crystals = GameObject.Find ("Crystals"); listOfCrystals = GameObject.FindGameObjectsWithTag ("Crystal"); crystals.SetActive (false); shootScript = player.GetComponent<ShootScript> (); flightScript = player.GetComponent<FlightScript> (); //shootScript.Shoot += new ShootEventHandler(HasShot); flightScript.Flown += new FlightEventHandler(HasFlown); //GameObject.Find("CameraRight").camera.backgroundColor = Color.white; text = welcomeText; playSound(welcomeAudio); }