예제 #1
0
    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);
    }
예제 #2
0
    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);
    }