Exemplo n.º 1
0
 private void Awake()
 {
     ReloadColliders();
     collisionOverrides = GetComponent <CollidableObjectCollisionOverrides>();
     if (collisionOverrides != null)
     {
         collisionOverrides.DefaultColliders = myColliders;
     }
 }
Exemplo n.º 2
0
        public void Start()
        {
            CollidableObjectCollisionOverrides component = GetComponent <CollidableObjectCollisionOverrides>();

            if (component != null)
            {
                component.SetDragging(dragging: true);
            }
        }
Exemplo n.º 3
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);
            }
        }