Example #1
0
        void RegisterForCollision()
        {
            if (collisionCallback != null && EventListener.HasCallback(collisionCallback))
            {
                EventListener.RemoveCallback(collisionCallback);
            }

            collisionCallback = EventListener.AddCallback(new EntityEventCallback(OnCollision, EEntityEvent.ENTITY_EVENT_COLLISION));
        }