public void TaskOnClick() { TempoarySettings.Reset(); TempoarySettings.NumberOfPlayers = numberOfPlayers; Destroy(playerSelectionScreen); var canvas = FindObjectOfType <Canvas>(); Instantiate(characterSelectionScreen, canvas.transform); }
public void OnPointerClick(PointerEventData eventData) { if (state) { state = false; imageContainer.texture = inactive; TempoarySettings.RemoveCharacterFromParty(character); } else if (TempoarySettings.NumberOfSelectedCharacters + 1 <= TempoarySettings.NumberOfPlayers) { state = true; imageContainer.texture = active; TempoarySettings.AddCharacterToParty(character); } }