Exemple #1
0
    public override bool ActionStart()
    {
        Debug.Log("Chase start");
        move.GoToPlayer(chase_range);
        interupt = false;
        bool ret = move.ActionStart();

        return(ret);
    }
Exemple #2
0
    public override bool ActionStart()
    {
        event_to_react.start_counting = false;

        bt = GetComponent <EnemySword_BT>();
        if (bt == null)
        {
            bt = GetComponent <EnemyShield_BT>();
        }
        if (bt == null)
        {
            bt = GetComponent <EnemySpear_BT>();
        }

        percep_sight = GetComponent <PerceptionSightEnemy>();

        comp_anim = GetComponent <CompAnimation>();

        move.GoToPlayer((uint)bt.range);
        interupt = false;
        bool ret = move.ActionStart();

        return(ret);
    }