Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
    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>();
    }
Exemplo n.º 3
0
    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;
    }
Exemplo n.º 4
0
    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>();
    }
Exemplo n.º 5
0
 void Awake()
 {
     instance = this;
 }
Exemplo n.º 6
0
 void Awake()
 {
     instance = this;
 }