public void SwapTalentSlot() { data.SetEditType(EventSystem.current.currentSelectedGameObject.GetComponent <TalentSlotData>().type); data.SetEditSlot(EventSystem.current.currentSelectedGameObject.GetComponent <TalentSlotData>().slot); SceneLoader sceneLoader = new SceneLoader(); sceneLoader.Abilities(); }