private void OnTriggerExit(Collider other) { Biocrowds.Core.Agent agent = other.GetComponent <Biocrowds.Core.Agent>(); if (agent != null) { _agents.Remove(agent); } else if (other.GetComponent <CharacterBehaviour>()) { _isCharacterStanding = false; } UpdateMaterial(isEmpty); }
private void OnTriggerEnter(Collider other) { Biocrowds.Core.Agent agent = other.GetComponent <Biocrowds.Core.Agent>(); if (agent != null) { agent.CheckStop(this); _agents.Add(agent); } else if (other.GetComponent <CharacterBehaviour>()) { _isCharacterStanding = true; } UpdateMaterial(isEmpty); }