/// <summary> /// Kill the player. /// </summary> public void Die() { Instantiate( player.EffectsSettings.DeathEffect, player.Physics.Position, Quaternion.identity ); playerSprite.enabled = false; TransitionManager.Wipe(); player.Physics.Disable(); if (player.CarriedItem != null) { player.CarriedItem.OnPutDown(); } player.EndInteraction(); player.DisableCrouch(this); player.DisableJump(this); player.DisableMove(this); isDead = true; }
public void OnClick() { ((DecisionNode)DialogManager.GetCurrentNode()).Decide(Decision, DialogManager.GraphEngine); PlayerCharacter player = GameManager.Player; if (DialogManager.IsDialogFinished()) { player.EndInteraction(); } }