//Select this beast and give options to move to another slot or remove from the grid void EditPlace() { createManager.selected = thisBeast; createManager.selectedIndex = thisBeastIndex; Debug.Log("Current Slot ID: " + slotID); Debug.Log("Selected Slot: " + createManager.selectedSlotID); Debug.Log("Slots: " + createManager.slot1 + "-" + createManager.slot2 + "-" + createManager.slot3 + "-" + createManager.slot4 + "-" + createManager.slot5 + "-" + createManager.slot6 + "-"); createManager.selectedSlotID = slotID; createManager.LightUpSlots(); createManager.removeButton.SetActive(true); createManager.moving = true; }
void Update() { if (mouse_over) { //When mouse is clicked and cursor is over this image, light up the slots if (Input.GetMouseButtonDown(0)) { if (NotSummoned() && !createManager.saveMode) { if (createManager.canBePlaced) { createManager.LightUpSlots(); createManager.placing = true; } createManager.selectedIndex = GetThisBeast(); createManager.selected = createPoolLoader.summoned[createManager.selectedIndex]; } } } }