public void UpdateState() { Chase(); if (enemy.isDead()) { ToDeathState(); } }
public void UpdateState() { if (!enemy.isDead()) { Look(); Chase(); } else { enemy.meshRendererFlag.material.color = Color.black; ToDeathState(); } }
public void UpdateState() { if (!enemy.isDead()) { Look(); Patrol(); if (enemy.isDamaged()) { ToChaseState(); } } else { enemy.meshRendererFlag.material.color = Color.black; ToDeathState(); } }