// Use this for initialization void Start() { triggers = gameObject.AddComponent <AITriggerManager>(); triggers.AddTrigger("Interactable Structure Trigger Node", radius, TriggerEnter, TriggerExit); aiInBuilding = new List <GameObject>(); }
// Use this for initialization void Start() { base.Initialize(); ai = GetComponent <EnemyAI>(); movement = GetComponent <AIMovementManager>(); weaponManager = GetComponent <AIWeaponManager>(); base.weaponManager = weaponManager; desiredItems = new List <GameObject>(); AITriggerManager triggers = GetComponent <AITriggerManager>(); triggers.AddTrigger("Item View Distance", 4, ItemTriggered); triggers.AddTrigger("Item Grab Distance", 1.5f, GrabTriggered); }