Exemplo n.º 1
0
 private void resultBubbleClose()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMachine>();
     player.setCutsceneMode(false);
     player.setFrozenStatus(false);
     StartCoroutine(waitBeforeEnablingJump());
 }
Exemplo n.º 2
0
    IEnumerator delayPlayerControl()
    {
        yield return(new WaitForSeconds(playerControlDelay));

        player.setCutsceneMode(false);
        player.allowArtUpdate = true;
        player.setFrozenStatus(false);
    }
Exemplo n.º 3
0
 void LateUpdate()
 {
     if (player.gameManager.inputManager.isInputDown[4] || player.gameManager.inputManager.isInputDown[5])
     {
         foreach (Animator a in animators)
         {
             a.SetTrigger("Close");
         }
         player.setCutsceneMode(false);
         player.setFrozenStatus(false);
         player.art.animator.SetBool("ItemGet", false);
         Destroy(popup.gameObject, destructionDelay);
         Destroy(gameObject, destructionDelay);
     }
 }
Exemplo n.º 4
0
    public void startPopup(BaseItem itemType, PlayerMachine player)
    {
        this.player = player;
        item        = itemType;

        player.setCutsceneMode(true);
        player.setFrozenStatus(true);

        if (itemType.name.StartsWith("A") || itemType.name.StartsWith("E") || itemType.name.StartsWith("I") || itemType.name.StartsWith("O") || itemType.name.StartsWith("U"))
        {
            nameText.text = "You got an <color=red>" + itemType.itemName + "</color>!";
        }
        else
        {
            nameText.text = "You got a <color=red>" + itemType.itemName + "</color>!";
        }

        descText.text = itemType.description;

        popup = Instantiate(iconPopup, player.transform).GetComponent <ItemIconPopup>();
        animators.Add(popup.gameObject.GetComponent <Animator>());
        popup.show(item.icon);
    }
Exemplo n.º 5
0
 private void noSelected(PopupMenuOption option)
 {
     player.setCutsceneMode(false);
     player.setFrozenStatus(false);
     StartCoroutine(waitBeforeEnablingJump());
 }