public void Start() { StopTimer(); RemoveAllBlocks(); StartDialog.Create(); GamePanel.Current.ShowDialog(StartDialog.Current); }
public void OnClickHome() { //oogleAnalyticsV4.getInstance().LogEvent("Menu", "Home Pause Click", string.Empty, 0L); SoundManager.Instance.PlaySfx(SFX.Button); this.OnCloseAllDialogs(); StartDialog start = GameManager.Instance.OnShowDialog <StartDialog>("Start"); }
private async void Editor_Loaded(object sender, RoutedEventArgs e) { LoadingControl.IsLoading = false; if (string.IsNullOrEmpty(eeeeeeee) == true) { await StartDialog.ShowAsync(); } //TO-DO: REPLACE WITH BETTER SOLUTION // Ready for Display var loop = 10; while (loop == 10) { try { var range = await Editor.GetModel().GetFullModelRangeAsync(); var line = await Editor.GetPositionAsync(); var count = await Editor.GetModel().GetLineCountAsync(); MainPage.UniversalStatusText.Text = "Range: " + range.ToString() + " Ln: " + line + " All Ln: " + count; } catch { return; } } }
private void showStartDialog() { StartDialog startDialog = new StartDialog((CountdownViewModel)DataContext); bool? dialogResult = startDialog.ShowDialog(); if (dialogResult == null || !dialogResult.Value) { Close(); } }
private void Awake() { _clawAudio = GetComponent <AudioSource>(); _dialogScript = GetComponent <StartDialog>(); if (_dialogScript != null) { _hasDialog = true; } }
private void OnTriggerEnter2D(Collider2D other) { StartDialog dialogScript = other.GetComponent <StartDialog>(); if (dialogScript != null) { if (dialogScript.StartDialogs(_dialogObject, _isTutorial)) { Destroy(gameObject); } } }
private void Start() { gameMaster = GameObject.FindGameObjectWithTag(Utilities.GAME_MASTER_TAG).GetComponent<GameMaster>(); boostTimer = GetComponentInChildren<BoostTimer>(); startDialog = GetComponentInChildren<StartDialog>(); HUD = GetComponentInChildren<HUD>(); joystickController = GetComponentInChildren<JoystickController>(); string currentSceneName = SceneManager.GetActiveScene().name; int currentLvl = int.Parse(currentSceneName.Substring(3)); lvlText.text = "Level " + currentLvl; alertText.GetComponent<CanvasRenderer>().SetAlpha(0); }
/// <summary> /// Postprocessing the result of a dialog. /// </summary> /// <param name="ctx">The context of the bot.</param> /// <param name="cancellationToken">The cancellation token of the current context.</param> /// <param name="dialogContext">The dialog context.</param> /// <param name="dialogResult">The dialog result.</param> /// <returns>An execution.</returns> protected virtual async Task HandleDialogResult(ITurnContext ctx, CancellationToken cancellationToken, DialogContext dialogContext, DialogTurnResult dialogResult) { if (dialogResult == null) { // Assume Dialog Chaining .. await Chain(ctx, cancellationToken, dialogContext, dialogResult); return; } switch (dialogResult.Status) { case DialogTurnStatus.Empty: string dialog = await ClassifyDialog(ctx); if (dialog != null) { await StartDialog(dialog)(ctx); } break; case DialogTurnStatus.Complete: await dialogContext.EndDialogAsync(); break; case DialogTurnStatus.Cancelled: await dialogContext.CancelAllDialogsAsync(); DialogInstances.ForEach(d => d.Reset()); break; case DialogTurnStatus.Waiting: break; } await State.SaveChangesAsync(ctx, cancellationToken : cancellationToken); }
/* //not used * public void SendFeedback() * { * BrowserDialog.Show(new Uri(CLIPFLAIR_FEEDBACK)); * } */ #region --- Start Dialog --- public void ShowStartDialog() { StartDialog.Show(this); }
void Awake() { this.baseDialogs = new List <BaseDialog>(); StartDialog start = GameManager.Instance.OnShowDialog <StartDialog>("Start"); }