Ejemplo n.º 1
0
    void OnTriggerExit(Collider other)
    {
        NeighbourAgents na = other.transform.parent.gameObject.GetComponent("NeighbourAgents") as NeighbourAgents;

        if (na != null)
        {
            na.HasLostOfSight(this.gameObject);
        }
    }