override public void Execute(EnemyAI enemyAi) { enemyAi.Stand(); if (enemyAi.bSight()) { enemyAi.ChangeState(BossTrace.Instance()); } }
public static new EnemyTrace Instance() { if (bossTrace == null) { bossTrace = ScriptableObject.CreateInstance("BossTrace") as BossTrace; } return(bossTrace); }
override public void Execute(EnemyAI enemyAi) { HellephantAI helle = enemyAi as HellephantAI; helle.Skill_EarthQuake(); switch (helle.Active()) { case 0: break; case 1: helle.ChangeState(BossRush.Instance()); break; case 2: helle.ChangeState(BossTrace.Instance()); break; default: break; } }