예제 #1
0
    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);
    }
예제 #2
0
    public void OnMouseUp()
    {
        if (sound.sprite == sndOn)
        {
            sceneManager.enabled = false;
        }

        else
        {
            sceneManager.enabled = true;
            ac.PlayClickBip();
        }

        UpdateIcon();
        MenuAchievement.AddElement(gameObject.name);
    }
예제 #3
0
 public void OnMouseUp()
 {
     MenuAchievement.AddElement(gameObject.name);
     Application.OpenURL(url);
 }
예제 #4
0
 public void OnMouseUp()
 {
     MenuAchievement.AddElement(gameObject.name);
     StartCoroutine(ChangeScene(scn));
 }
예제 #5
0
 public void OnMouseUp()
 {
     MenuAchievement.AddElement(gameObject.name);
     gplay.ShowAchievements();
 }