.
This commit is contained in:
parent
306576a5e6
commit
81dc8539cc
@ -52,6 +52,24 @@ public class MonsterController : MonoBehaviour
|
|||||||
|
|
||||||
IEnumerator MonsterAction()
|
IEnumerator MonsterAction()
|
||||||
{
|
{
|
||||||
|
while (!isDie)
|
||||||
|
{
|
||||||
|
switch (monsterState)
|
||||||
|
{
|
||||||
|
case State.IDLE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case State.TRACE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case State.ATTACK:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case State.DIE:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(0.3f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user