コード例 #1
0
        public static T ShowPopup <T> (string name, IModalMaskType maskType = IModalMaskType.NonMasked, CocoAudioID audioID = CocoAudioID.None)
        {
            CocoAudio.PlaySound(audioID);
            AppModalHandle modalHandle = CocoMainController.Instance.popManager.Add(new AppModalHandle(name, maskType), true) as AppModalHandle;

            return(modalHandle.AppModalView.GetComponentInChildren <T>(true));
        }
コード例 #2
0
 /// <summary>
 /// Shows the popup.
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="maskType">Mask type.</param>
 public static void ShowPopup(string name, IModalMaskType maskType = IModalMaskType.NonMasked, CocoAudioID audioID = CocoAudioID.None)
 {
     CocoAudio.PlaySound(audioID);
     CocoMainController.Instance.popManager.Add(new AppModalHandle(name, maskType), true);
 }