private void resultBubbleClose() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMachine>(); player.setCutsceneMode(false); player.setFrozenStatus(false); StartCoroutine(waitBeforeEnablingJump()); }
IEnumerator delayPlayerControl() { yield return(new WaitForSeconds(playerControlDelay)); player.setCutsceneMode(false); player.allowArtUpdate = true; player.setFrozenStatus(false); }
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); } }
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); }
private void noSelected(PopupMenuOption option) { player.setCutsceneMode(false); player.setFrozenStatus(false); StartCoroutine(waitBeforeEnablingJump()); }