public void CanvasEnabled() { activeStaffIndex = spellAndStaffPrefabs.GetIndexOfSelectedSpell(); PopulateSelectButton(true); EnableStaff(activeStaffIndex); EnableSpell(activeStaffIndex); activeStaff.SetActive(true); activeSpell.SetActive(true); gameObject.GetComponent <Canvas>().enabled = true; }
public void OnPlayerControllerEnable() { GetAvailableSkins(); int i = sasf.GetIndexOfSelectedSpell(); staffPrefabs[i].SetActive(true); GetAndToggleAllSkins(true); }