public void Start() { CollidableObjectCollisionOverrides component = GetComponent <CollidableObjectCollisionOverrides>(); if (component != null) { component.SetDragging(dragging: true); } }
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); } }