Ejemplo n.º 1
0
 /// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 protected virtual void OnDestroy()
 {
     if ((DragPoints != null) && (CanvasTransform != null) && DragPoints.ContainsKey(CanvasTransform.GetInstanceID()))
     {
         DragPoints.Remove(CanvasTransform.GetInstanceID());
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 public virtual void OnDestroy()
 {
     if ((DragPoints != null) && (CanvasTransform != null) && (DragPoints.ContainsKey(CanvasTransform)))
     {
         DragPoints.Remove(CanvasTransform);
     }
 }