Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public void SetActiveLightTrigger(LightTrigger lightTrigger)
        {
            currentActiveLightTrigger = lightTrigger;

            if (currentActiveLightTrigger != null && IsSkillActivated && playerType == PlayerType.GHOST)
            {
                TriggerCurrentActiveLight();
            }
        }
Ejemplo n.º 3
0
 public void RemoveActiveLightTrigger()
 {
     currentActiveLightTrigger = null;
 }