Example #1
0
    void Start()
    {
        agent = GetComponent <Agent>();
        animationController = GetComponent <AnimationController>();

        agent.SetSpeed(character.speed);

        print("employeeData.construct " + employeeData.construct);
        if (employeeData.construct != "")
        {
            targetObject = GameObject.Find(employeeData.construct);
        }

        current_StateAI  = AIAsset.instance.FindState(employeeData.stateAI);
        current_ActionAI = AIAsset.instance.FindAction(employeeData.actionAI);
    }
Example #2
0
 public virtual void SetAI(ActionAI ai)
 {
     logic.Info.AI = ai;
 }