コード例 #1
0
 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;
 }