Beispiel #1
0
    public static BossRush Instance()
    {
        if (bossRush == null)
        {
            bossRush = ScriptableObject.CreateInstance("BossRush") as BossRush;
        }

        return(bossRush);
    }
Beispiel #2
0
    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;
        }
    }