public void OnMouseUp() { boxCollArray = FindObjectsOfType <BoxCollider2D>();//recoge todos los componentes BC2D de la escena CollidersStatus(false); prefabCopy = Instantiate(boxPrefab); boxTexts = prefabCopy.GetComponentsInChildren <Transform>(); boxTexts[1].GetComponent <TextMesh>().text = boxDescription; for (int i = 1; i < 4; i++) { boxTexts[i].GetComponent <MeshRenderer>().sortingOrder = 6; } MenuAchievement.AddElement(gameObject.name); }
public void OnMouseUp() { if (sound.sprite == sndOn) { sceneManager.enabled = false; } else { sceneManager.enabled = true; ac.PlayClickBip(); } UpdateIcon(); MenuAchievement.AddElement(gameObject.name); }
public void OnMouseUp() { MenuAchievement.AddElement(gameObject.name); Application.OpenURL(url); }
public void OnMouseUp() { MenuAchievement.AddElement(gameObject.name); StartCoroutine(ChangeScene(scn)); }
public void OnMouseUp() { MenuAchievement.AddElement(gameObject.name); gplay.ShowAchievements(); }