// Start is called before the first frame update void Start() { memory = GetComponent <AI_Memory>(); vision = GetComponent <AI_Vision>(); rb = GetComponent <Rigidbody>(); rotation.y = 1000.0f; }
void Start() { StartCoroutine(FSM()); memory = GetComponent <AI_Memory>(); vision = GetComponent <AI_Vision>(); inventory = GetComponent <Inventory_Control>(); rb = GetComponent <Rigidbody>(); rotation.y = 1000.0f; On_Start(); }