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);
     }
 }
Пример #2
0
 public void Awake()
 {
     Instance = this;
 }