/// <summary> /// Handles the character status. /// </summary> protected virtual void HandleCharacterStatus() { // if the character is dead, we prevent it from moving horizontally if (ConditionState.CurrentState == CharacterStates.CharacterConditions.Dead) { _controller.SetHorizontalForce(0); return; } // if the character is frozen, we prevent it from moving if (ConditionState.CurrentState == CharacterStates.CharacterConditions.Frozen) { _controller.GravityActive(false); _controller.SetForce(Vector2.zero); } }