// Limit capturing to once per frame //private bool capturedStateThisFrame = false; // Start is called before the first frame update void Start() { // Ignroe this AI layers layerMask = 1 << 8; layerMask = ~layerMask; agent = GetComponent <Agent>(); agentHealth = GetComponent <Health>(); agentSword = GetComponentInChildren <Sword>(); agentManager = GetComponentInParent <AgentManager>(); policy_con = GetComponent <PolicyConnection>(); }
// Start is called before the first frame update void Start() { cam = GetComponent <Camera>(); policy_con = GetComponent <PolicyConnection>(); agentManager = GameObject.Find("GameManager").GetComponent <AgentManager>(); }