Ejemplo n.º 1
0
        void OnTriggerExitChild(GameObject child_game_object, Collider other_game_object)
        {
            if (this._actor)
            {
                if (this._based_on_tags)
                {
                    if (child_game_object.CompareTag(this._area.tag) && other_game_object.CompareTag(this._actor.tag))
                    {
            #if NEODROID_DEBUG
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is outside area");
                        }
            #endif

                        this._overlapping = ActorOverlapping.Outside_area_;
                    }

                    if (child_game_object.CompareTag(this._actor.tag) && other_game_object.CompareTag("Obstruction"))
                    {
            #if NEODROID_DEBUG
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is not colliding");
                        }
            #endif

                        this._colliding = ActorColliding.Not_colliding_;
                    }
                }
                else
                {
                    if (child_game_object == this._area.gameObject &&
                        other_game_object.gameObject == this._actor.gameObject)
                    {
            #if NEODROID_DEBUG
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is outside area");
                        }
            #endif

                        this._overlapping = ActorOverlapping.Outside_area_;
                    }

                    if (child_game_object == this._actor.gameObject && other_game_object.CompareTag("Obstruction"))
                    {
            #if NEODROID_DEBUG
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is not colliding");
                        }
            #endif

                        this._colliding = ActorColliding.Not_colliding_;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        void OnTriggerExitChild(GameObject child_game_object, Collider other_game_object)
        {
            if (this._actor)
            {
                if (this._based_on_tags)
                {
                    if (child_game_object.tag == this._area.tag && other_game_object.tag == this._actor.tag)
                    {
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is outside area");
                        }
                        this._overlapping = ActorOverlapping.OutsideArea;
                    }

                    if (child_game_object.tag == this._actor.tag && other_game_object.tag == "Obstruction")
                    {
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is not colliding");
                        }
                        this._colliding = ActorColliding.NotColliding;
                    }
                }
                else
                {
                    if (child_game_object == this._area.gameObject &&
                        other_game_object.gameObject == this._actor.gameObject)
                    {
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is outside area");
                        }
                        this._overlapping = ActorOverlapping.OutsideArea;
                    }

                    if (child_game_object == this._actor.gameObject && other_game_object.tag == "Obstruction")
                    {
                        if (this.Debugging)
                        {
                            Debug.Log("Actor is not colliding");
                        }
                        this._colliding = ActorColliding.NotColliding;
                    }
                }
            }
        }