Пример #1
0
        private void OnTriggerEnter2D(Collider2D other)
        {
            if (_state != EoP_State.FollowPlayer || other.GetComponent <PlayerAreaDamage>() == null)
            {
                return;
            }

            _state = EoP_State.Acquire;
            OnEnterAcquireState();
        }
Пример #2
0
 private void Start()
 {
     _state = EoP_State.Detach;
     OnEnterDetachState();
 }
Пример #3
0
        private IEnumerator ChangeToFollowPlayerStateCoroutine()
        {
            yield return(new WaitForSeconds(followPlayerDelay));

            _state = EoP_State.FollowPlayer;
        }