public void unregisterComponent(AiComponent component) { if (this.componentsList.Contains(component)) { this.componentsList.Remove(component); } }
public void registerComponent(AiComponent component) { this.componentsList.Add(component); notifyOnMove(); }
private void Start() { this.associatedNodeManager = nodeController.getAiManager(); this.brain = new AiComponent(this.associatedNodeManager, this); this.navMeshAgent = GetComponent <NavMeshAgent>(); }