/// <summary> /// Performs a slot swap. /// </summary> /// <param name="targetObject">Target slot.</param> public virtual bool PerformSlotSwap(Object targetObject) { // Get the source slot UISlotBase targetSlot = (targetObject as UISlotBase); // Get the target slot icon Object targetIcon = targetSlot.GetIconAsObject(); // Assign the target slot with this one bool assign1 = targetSlot.Assign(this); // Assign this slot by the target slot icon bool assign2 = this.Assign(targetIcon); // Return the status return(assign1 && assign2); }