예제 #1
0
        public void SetAsMinorPoint()
        {
            if (_set)
            {
                return;
            }

            lastMinorRecoverPoint = this;
            _position             = transform.position;
            _stamina = _player._stamina;
        }
        public void OnDeath(CharacterState state)
        {
            switch (_onDeath)
            {
            case DeathHandle.RespawnPoint:
                RecoverPoint.MainRespawn(true);
                break;

            case DeathHandle.ReloadLevel:
                SceneManager.LoadScene(SceneManager.GetActiveScene().name);
                break;

            case DeathHandle.InvokeEvent:
                _deathEvent.Invoke();
                break;
            }
        }