コード例 #1
0
    void Start()
    {
        r   = GetComponent <Rigidbody> ();
        cam = Camera.main;

        r.maxAngularVelocity       = 8;
        r.maxDepenetrationVelocity = 8;

        if (isLocalPlayer)
        {
            Renderer rend = transform.GetChild(0).GetChild(0).GetComponent <Renderer>();
            rend.material = bichoMulti;
            rend          = transform.GetChild(0).GetChild(1).GetComponent <Renderer>();
            rend.material = bichoMulti;
        }

        sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();
        sonidos.ReproducirSonidoSpawn();

        planeta = GameObject.Find("planeta").transform;

                #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WEBGL
        joystickMovimiento = GameObject.Find("FondoJoystickMovimiento").GetComponent <VirtualJoystick>();
                #endif
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     roullete   = GameObject.Find("Roullete");
     roulleteP  = roullete.GetComponent <RoulletePos> ();
     roulleteL  = GameObject.Find("RuletaNiveles");
     roulletePL = roulleteL.GetComponent <RoulletePos> ();
     cMl_Script = GameObject.Find("CM_level").GetComponent <CMl_Script>();
     sonidos    = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();
 }
コード例 #3
0
 void Awake()
 {
     // Registramos el singleton
     if (Instancia != null)
     {
         Debug.LogError("Muchas instancias de ReproducirSonidos!");
     }
     Instancia = this;
 }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        texto = GetComponent <Text>();

        ReproductorSonidos reproductor = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();

        if (reproductor.GetGanador() == 0 || reproductor.GetGanador() == -1)
        {
            texto.text = "Looser marica";
        }
    }
コード例 #5
0
    // Use this for initialization
    void Awake()
    {
        posInicial = transform.position;

        pivot = GameObject.Find("pivot camara");

        posInicialCamara   = pivot.transform.position;
        posInicialRotation = pivot.transform.rotation;

        RenderVidas = GameObject.Find("ControlDeVidas");

        sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();
    }
コード例 #6
0
    // Use this for initialization
    void Awake()
    {
        manager = GameObject.Find("LobbyManager").GetComponent <NetworkLobbyManager>();

        puntas     = new PuntasEstrella();
        posInicial = transform.position;

        pivot = GameObject.Find("pivot camara");

        posInicialCamara   = pivot.transform.position;
        posInicialRotation = pivot.transform.rotation;

        sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();
    }
コード例 #7
0
    void Awake()
    {
        r   = GetComponent <Rigidbody> ();
        cam = Camera.main;

        r.maxAngularVelocity       = 8;
        r.maxDepenetrationVelocity = 8;

        sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();

        if (planeta == null)
        {
            planeta = GameObject.Find("planeta").transform;
        }
    }
コード例 #8
0
 // Use this for initialization
 void Start()
 {
     sonidos = GameObject.FindGameObjectWithTag("reproductor").GetComponent <ReproductorSonidos>();
 }