Пример #1
0
 // Use this for initialization
 void Start()
 {
     R            = new Rect();
     TempoIntTuto = Intervalo;
     Direccion    = GetComponent <ControlDireccion>();
     Pj           = GetComponent <Player>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     TempoIntTuto = Intervalo;
     Direccion    = GetComponent <ControlDireccion>();
     Pj           = GetComponent <Player>();
     techoRend    = Techo.GetComponent <Renderer>();
 }
Пример #3
0
    //------------------------------------------------------------------//

    // Use this for initialization
    void Start()
    {
#if UNITY_EDITOR || UNITY_STANDALONE
        joy.SetActive(false);
        buttons.SetActive(false);

        switch (lvlMg.gameMode)
        {
        case Mode.single:
            if (Pj.IdPlayer == 0)
            {
                points.SetActive(true);
            }
            if (Pj.IdPlayer == 1)
            {
                points.SetActive(false);
            }
            break;

        case Mode.multi:
            if (Pj.IdPlayer == 0 || Pj.IdPlayer == 1)
            {
                points.SetActive(true);
            }
            break;
        }
#elif UNITY_ANDROID
        switch (lvlMg.gameMode)
        {
        case Mode.single:
            if (Pj.IdPlayer == 0)
            {
                joy.SetActive(true);
                buttons.SetActive(true);
                points.SetActive(true);
            }
            if (Pj.IdPlayer == 1)
            {
                joy.SetActive(false);
                buttons.SetActive(false);
                points.SetActive(false);
            }
            break;

        case Mode.multi:
            if (Pj.IdPlayer == 0 || Pj.IdPlayer == 1)
            {
                joy.SetActive(true);
                buttons.SetActive(true);
                points.SetActive(true);
            }
            break;
        }
#endif

        TempoIntTuto = Intervalo;
        Direccion    = GetComponent <ControlDireccion>();
        Pj           = GetComponent <Player>();
    }
Пример #4
0
    //------------------------------------------------------------------//

    // Use this for initialization
    void Start()
    {
        TempoIntTuto = Intervalo;
        Direccion    = GetComponent <ControlDireccion>();
        Pj           = GetComponent <PlayerScript>();
    }