Exemplo n.º 1
0
    public static UtilityBehaviourAI Initialize(FlameThrowerEnemy enemy)
    {
        MovementController ctr = new FlameThrowerEnemyController(enemy);

        instance.AddController(ctr);

        return(instance);
    }
Exemplo n.º 2
0
    /* --------------------------------------------------------------------------------------------*/
    /* --------------------------------------------------------------------------------------------*/
    /* --------------------------------------------------------------------------------------------*/
    /* ------------------------------------ ACTIONS FUNCTIONS -------------------------------------*/
    /* --------------------------------------------------------------------------------------------*/
    /* --------------------------------------------------------------------------------------------*/
    /* --------------------------------------------------------------------------------------------*/
    public override IEnumerator Attack(MovementController ctr, UtilityAction act)
    {
        act.isStoppable = false;

        FlameThrowerEnemyController enemy = ctr as FlameThrowerEnemyController;

        yield return(StartCoroutine(enemy.Fire()));

        act.isRunning = false;
    }