public void ClearCharacter(BaseEventData eventData) { PointerEventData pointerEventData = (PointerEventData)eventData; QuestBoard_CharacterSlot thisSlot = pointerEventData.pointerPress.GetComponentInParent <QuestBoard_CharacterSlot>(); Character thisChar = thisSlot.character; QuestBoard questBoard = GameManager.GetInstance().GetQuestBoard(); questBoard.characters.Remove(thisChar); thisSlot.SetCharacter(null); }
public static void SetSelectedSlotCharacter(Character character) { QuestBoard_CharacterSlot thisSlot = selectedSlot.GetComponent <QuestBoard_CharacterSlot>(); thisSlot.SetCharacter(character); }