void OnTriggerEnter(Collider other) { Fish fish = other.gameObject.GetComponent <Fish>(); if (fish != null && fish.CanEat() && m_state == EWhaleState.IDLE) { fish.Eat(); Heal(); // SetEffect(EEffectType.EAT); } }
void OnTriggerEnter(Collider other) { Fish fish = other.gameObject.GetComponent <Fish>(); if (fish != null && fish.CanEat() && m_state == EWhaleState.IDLE) { fish.Eat(); Heal(); // SetEffect(EEffectType.EAT); } }