public void killPlayer() { KeyImputManager.LockPlayerMouvement(); animator.SetTrigger("dying"); resetPlayer(); Invoke("TeleportPlayer", 1f); }
private void pushPlayer() { if (pushThePlayer) { KeyImputManager.LockPlayerMouvement(); GameObject.FindGameObjectWithTag("Player").transform.SetPositionAndRotation(new Vector3(GameObject.FindGameObjectWithTag("Player").transform.position.x - .2f, GameObject.FindGameObjectWithTag("Player").transform.position.y + 0.2f, GameObject.FindGameObjectWithTag("Player").transform.position.z), GameObject.FindGameObjectWithTag("Player").transform.rotation); updatePushTimer(); } }
public void knight1Action() { if (Player_Info.ableToDash == true) { playerDash(); KeyImputManager.LockPlayerMouvement(); Invoke("unlockPlayerMovement", Player_Info.dashLenght); Player_Info.ableToDash = false; timeForNextDash = PlayerDashDelay; } }
public void knight2Action() { if (isShielded) { isShielded = false; increaseOpacity(); } else { cancelCurrentPlayerAction(); KeyImputManager.LockPlayerMouvement(); isShielded = true; decreaseOpacity(); } }
private void ShowDialog() { marchandDialog.enabled = true; DialogIsShowen = true; KeyImputManager.LockPlayerMouvement(); }
private void playerHurtAnimation() { animator.SetTrigger("hurt"); KeyImputManager.LockPlayerMouvement(); Invoke("unlockPlayerMovement", 0.1f); }