예제 #1
0
 private void onPlayerCardLoaded(string path, GameObject playerCardPrefab)
 {
     Object.Destroy(modalBackground);
     if (!handle.IsNull)
     {
         PlayerCardController component = Object.Instantiate(playerCardPrefab).GetComponent <PlayerCardController>();
         component.SetUpPlayerCard(handle);
         Service.Get <EventDispatcher>().DispatchEvent(new PopupEvents.ShowTopPopup(component.gameObject, destroyPopupOnBackPressed: false, scaleToFit: true, "Accessibility.Popup.Title.PlayerCard"));
     }
 }
예제 #2
0
 public void SetPlayerCardController(PlayerCardController playerCardController)
 {
     this.playerCardController = playerCardController;
 }