void Start() { //GradosRotacion = new Vector3(0.0f,0.0f,0.0f); //mundoPosition = this.transform.position; //mundoRotation = this.transform.rotation; anguloRotacion = 45f; distMovimiento = 5f; mundoObjetivo.transform.position = this.transform.position; mundoObjetivo.transform.rotation = this.transform.rotation; gestureListener = Camera.main.GetComponent <SimpleGestureListener>(); rotating = false; }
void Start() { fulla4 = GameObject.Find("fulla04").GetComponent <Animator>(); fulla16 = GameObject.Find("fulla16").GetComponent <Animator>(); fulla21 = GameObject.Find("fulla21").GetComponent <Animator>(); fulla27 = GameObject.Find("fulla27").GetComponent <Animator>(); fulla33 = GameObject.Find("fulla33").GetComponent <Animator>(); fulla34 = GameObject.Find("fulla34").GetComponent <Animator>(); fulla37 = GameObject.Find("fulla37").GetComponent <Animator>(); KinectManager manager = KinectManager.Instance; gestureListener = GameObject.Find("KinectObject").GetComponent <SimpleGestureListener>(); }
private void Start() { //KINECT isSpinning = false; one = true; KinectObject = GameObject.Find("KinectObject"); // get the gestures listener gestureListener = KinectObject.GetComponent <SimpleGestureListener>(); //Posicio central de la rotaciĆ³ centre = fum.GetComponent <Transform>().position; temps = 0.0f; rellotgeActiu = true; tocs = 0f; startTime = Time.time; posicioCuca = cuca.GetComponent <Transform>().position; posicioAncla = planta.GetComponent <Transform>().position; posicioCel = cel.GetComponent <Transform>().position; pujar = false; volar = true; percentatge = 0; actius = 0; totalactius = 13; //Pujar al nombre de cuques que hi hagi cuques = GameObject.Find("cuques"); activun = true; fuenteAudio = GetComponent <AudioSource>(); activar = false; }
public void Start() { linia = liniaObjecte.GetComponent <Animator>(); linia.enabled = false; soConst = GetComponent <AudioSource>(); soUn = true; soDos = true; puntObject.GetComponent <Transform>(); rotacio = true; flag2 = false; flag3 = true; //Kinect KinectManager manager = KinectManager.Instance; gestureListener = GameObject.Find("KinectObject").GetComponent <SimpleGestureListener>(); }
void Awake() { instance = this; }
void Awake() { instance = this; }