예제 #1
0
        public void Start()
        {
            CollidableObjectCollisionOverrides component = GetComponent <CollidableObjectCollisionOverrides>();

            if (component != null)
            {
                component.SetDragging(dragging: true);
            }
        }
예제 #2
0
        public void OnDestroy()
        {
            this.PositionChanged  = null;
            this.RotationChanged  = null;
            this.ScaleChanged     = null;
            this.TriggerEnter     = null;
            this.TriggerExit      = null;
            this.IsAllowedChanged = null;
            CollidableObjectCollisionOverrides component = GetComponent <CollidableObjectCollisionOverrides>();

            if (component != null)
            {
                component.SetDragging(dragging: false);
            }
        }