public virtual void ResetProperties(bool resetParameter = true) { stateElapsed = 0; curMovementSpeed = movementSpeed; currentPlayerHealth = playerHealth; currentAttackPower = attackPower; currentMoveDirection = MoveDirection.SIDE; isDead = false; animator.AnimationEventTriggered = AnimationEventTrigger; animator.AnimationCompleted = AnimatorComplete; rigidBody.velocity = Vector3.zero; prevState = IDLE; ChangeState(IDLE); if (animator.Paused) { animator.Resume(); } if (resetParameter) { ResetParameters(); } currentActiveLightTrigger = null; IsSkillActivated = false; }
public void SetActiveLightTrigger(LightTrigger lightTrigger) { currentActiveLightTrigger = lightTrigger; if (currentActiveLightTrigger != null && IsSkillActivated && playerType == PlayerType.GHOST) { TriggerCurrentActiveLight(); } }
public void RemoveActiveLightTrigger() { currentActiveLightTrigger = null; }