public void DesblokNextNivel() { nivel++; PositionSocial ps = GameObject.Find("Canvas").transform.GetChild(13).transform.GetChild(5).GetComponent <PositionSocial>(); ps.DesblokPositionSocial(nivel); }
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); } }
public void InitiatePositionSocial(int s) { PositionSocial ps = GameObject.Find("Canvas").transform.GetChild(13).transform.GetChild(5).GetComponent <PositionSocial>(); ps.InitiateImagesPositionSocial(s); }