private IEnumerator OnReciveRewardTransportCraft(Reward_TransportCraft reward) { bool recived = false; UIGetRewardDialog rewardMateralsDialog = Util.Instantiate(mPrefabUIDutyRewardMaterialsDialog.gameObject, mModalCamera.gameObject).GetComponent <UIGetRewardDialog>(); rewardMateralsDialog.Initialize(reward); rewardMateralsDialog.SetOnDialogClosedCallBack(delegate { recived = true; rewardMateralsDialog.Close(); UnityEngine.Object.Destroy(rewardMateralsDialog.gameObject); }); KeyControl rewardDialogKeyController = rewardMateralsDialog.Show(); ChangeKeyController(rewardDialogKeyController); while (!recived) { yield return(new WaitForSeconds(0.5f)); } }
public void Initialize(Reward_TransportCraft reward) { Util.Instantiate(this.mPrefab_UIDutyGetTransportCraftRewardGet.get_gameObject(), this.mPanel_RewardArea.get_gameObject(), false, false).GetComponent <UIDutyGetTransportCraftRewardGet>().Initialize(reward); }
public void Initialize(Reward_TransportCraft reward) { Util.Instantiate(mPrefab_UIDutyGetTransportCraftRewardGet.gameObject, mPanel_RewardArea.gameObject).GetComponent <UIDutyGetTransportCraftRewardGet>().Initialize(reward); }
public void Initialize(Reward_TransportCraft reward) { this.mLabel_Message.text = string.Format("輸送船 x {0}", reward.Num); }
public void Initialize(Reward_TransportCraft reward) { mLabel_Message.text = $"輸送船 x {reward.Num}"; }