///////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// start routine /// </summary> ///////////////////////////////////////////////////////////////////////////////////////////////// private IEnumerator start() { result.SetActive(false); yield return(GlobalDialog.Create()); isReady = true; }
public MasterDetailPage() { this.InitializeComponent(); Current = this; SystemNavigationManager.GetForCurrentView().BackRequested += MasterDetailPage_BackRequested; GlobalDialog.InitializeDialog(rootGrid, this); }
///////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Release this instance. /// </summary> ///////////////////////////////////////////////////////////////////////////////////////////////// public static void Release() { if (instance != null) { Destroy(instance.gameObject); instance = null; } }
private static void OnVersus(TitleScreen titleScreen) { if (!titleScreen.AllowMultiplayer()) { SoundManager.PlayAudio("MenuError"); GlobalDialog.Display("titleScreen-connect2ndController"); } else { SoundManager.PlayConfirmAudio(); titleScreen.StartGame(loadPvP: true); GameController.coopOn = true; } }
///////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Awake this instance. /// </summary> ///////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { if (instance != null) { Release(); } instance = this; DontDestroyOnLoad(gameObject); gameObject.name = "Global_Dialog"; // set callback buttonLeft.onClick.AddListener(onLeftButton); buttonRight.onClick.AddListener(onRightButton); // disable canvas canvas.enabled = false; }