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")); } }
public void SetPlayerCardController(PlayerCardController playerCardController) { this.playerCardController = playerCardController; }