示例#1
0
        private void RaiseCollisionEvent(EnterStatus status, Collision collision)
        {
            var handler = CollisionEvent;

            if (handler == null)
            {
                return;
            }
            handler(VCICollisionTrigger.Create(this, status, collision));
        }
示例#2
0
        private void RaiseTrigger(EnterStatus status, Collider collider)
        {
            var handler = TriggerEvent;

            if (handler == null)
            {
                return;
            }
            handler(VCICollisionTrigger.Create(this, status, collider));
        }