Пример #1
0
    public static BossEarthQuake Instance()
    {
        if (bossEarthQuake == null)
        {
            bossEarthQuake = ScriptableObject.CreateInstance("BossEarthQuake") as BossEarthQuake;
        }

        return(bossEarthQuake);
    }
Пример #2
0
    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;
        }
    }