public static BossEarthQuake Instance() { if (bossEarthQuake == null) { bossEarthQuake = ScriptableObject.CreateInstance("BossEarthQuake") as BossEarthQuake; } return(bossEarthQuake); }
override public void Execute(EnemyAI enemyAi) { HellephantAI helle = enemyAi as HellephantAI; helle.Trace(); switch (helle.Active()) { case 0: helle.ChangeState(BossEarthQuake.Instance()); break; case 1: helle.ChangeState(BossRush.Instance()); break; case 2: break; default: break; } }