//private bool _start_coroutine; void IState.OnEnter(WendyAI wendy) { // - wendy 프로퍼티 초기화 this._wendy = wendy; _state_num = 2; //_start_coroutine = false; //_contact = _wendy.GetContact(); // - 초기화 _wendy.SetIdleAni(); if (!_contact) { _wendy.ChangeState(); } }
void IState.OnEnter(WendyAI wendy) { //wendy 프로퍼티 초기화 this._wendy = wendy; _state_num = WendyState.Idle; _contact = _wendy.GetContact(); _start_coroutine = false; _wendy.SetIdleAni(); if (!_contact) { _wendy.StartIdleCoroutine(); _start_coroutine = true; } }
void IState.OnExit() { _wendy.StopMovemntCoroutine(); //StopCDCoroutine(); _wendy.SetIdleAni(); }