public void ShowMazeInvitation(string playerName, string mazeName) { if (MazeLevelInvitation.Instance == null) { GameObject mazeInvitationGO = Instantiate(_mazeLevelInvitationPanelPrefab, transform); mazeInvitationGO.SetActive(true); MazeLevelInvitation mazeInvitation = mazeInvitationGO.GetComponent <MazeLevelInvitation>(); mazeInvitation.Show(playerName, mazeName); } else { MazeLevelInvitation.Instance.Show(playerName, mazeName); } }
public void Awake() { Instance = this; }