Ejemplo n.º 1
0
 //Move this beast to another slot
 void MoveImage()
 {
     if (slotID != createManager.selectedSlotID) // Abdul - I added this to fix the dissapearing act in Create Squad, It verifies if the selected slot matches the previously recorded slot, if it's not the same slot then it will work
     {
         gameObject.GetComponent <Image>().sprite = Resources.Load <Sprite>(createPoolLoader.summonedImages[createManager.selectedIndex]);
         gameObject.GetComponent <Image>().color  = Color.white;
         SetSlot();
         createManager.RemoveSlotImage();
     }
 }