Beispiel #1
0
    // Use this for initialization
    protected virtual void Start()
    {
        movement = GetComponent <Movement> ();
        Debug.Assert(movement != null, "MovementAI needs a Movement component");

        // this should be done last to make sure the rest is properly initialized
        HighLevelFunction hlf = GetComponent <HighLevelFunction> ();

        hlf.SetMoveAI(this);
    }
    // Use this for initialization
    protected virtual void Start()
    {
        //attack = GetComponent<Attack> ();
        //Debug.Assert (attack != null, "AttackAI needs an Attack component");

        visibleObjectsPrioritiser = GetComponent <EvaluateVisibleObjects> ();

        // this should be done last to make sure the rest is properly initialized
        HighLevelFunction hlf = GetComponent <HighLevelFunction> ();

        hlf.SetAttackAI(this);
    }