public void ShowMazeInvitationRejection(string rejectorName, string mazeName) { if (MazeLevelInvitationRejection.Instance == null) { GameObject mazeInvitationRejectionGO = Instantiate(_mazeLevelInvitationRejectionPanelPrefab, transform); mazeInvitationRejectionGO.SetActive(true); MazeLevelInvitationRejection mazeInvitationRejection = mazeInvitationRejectionGO.GetComponent <MazeLevelInvitationRejection>(); mazeInvitationRejection.Show(rejectorName, mazeName); } else { MazeLevelInvitationRejection.Instance.Show(rejectorName, mazeName); } }
public void Awake() { Instance = this; }