Esempio n. 1
0
    public void DesblokNextNivel()
    {
        nivel++;
        PositionSocial ps = GameObject.Find("Canvas").transform.GetChild(13).transform.GetChild(5).GetComponent <PositionSocial>();

        ps.DesblokPositionSocial(nivel);
    }
Esempio n. 2
0
    private void AcessPosition(GameObject go)
    {
        RectTransform  rt = go.transform.GetChild(5).transform.GetChild(1).transform.GetChild(0).GetComponent <RectTransform>();
        PositionSocial ps = go.transform.GetChild(5).GetComponent <PositionSocial>();

        if (ps.getPosition() == 0)
        {
            rt.anchoredPosition = new Vector2(879, rt.anchoredPosition.y);
        }
        else if (ps.getPosition() == 1)
        {
            rt.anchoredPosition = new Vector2(367, rt.anchoredPosition.y);
        }
        else if (ps.getPosition() >= 2)
        {
            rt.anchoredPosition = new Vector2(-22, rt.anchoredPosition.y);
        }
    }
Esempio n. 3
0
    public void InitiatePositionSocial(int s)
    {
        PositionSocial ps = GameObject.Find("Canvas").transform.GetChild(13).transform.GetChild(5).GetComponent <PositionSocial>();

        ps.InitiateImagesPositionSocial(s);
    }