Beispiel #1
0
    /*
     * // Update is called once per frame
     * void Update () {
     *
     * }
     */



    void OnTriggerEnter(Collider other)
    {
        NeighbourAgents na = other.transform.parent.gameObject.GetComponent("NeighbourAgents") as NeighbourAgents;

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