protected override void InitBindings() { ButtonChoose.SetOnClickCommand(ViewModel.AskUserAboutFancyThingsCommand); ButtonShow.SetOnClickCommand(ViewModel.ShowLastFanciedThingCommand); ButtonNavigate.SetOnClickCommand(ViewModel.NavigateSomewhereElseCommand); ButtonReset.SetOnClickCommand(ViewModel.ResetFanciness); ButtonDialog.SetOnClickCommand(ViewModel.ShowDialogCommand); ButtonDialogB.SetOnClickCommand(ViewModel.ShowDialogBCommand); ButtonInput.SetOnClickCommand(ViewModel.InputFanciness); FancyLoading.SetOnClickCommand(ViewModel.ShowLoadingDialogCommand); }
private void ShowQuestion() { TextBoxQ.Text = ""; TextBoxA.Text = ""; AnswerPanel.IsEnabled = false; if (Logic.CurrentMemo == null) { return; } TextBoxQ.Text = $"\r\n{Logic.CurrentMemo.Question}"; LabelLevelValue.Content = Logic.CurrentMemo.PostponeLevel.ToString(); LabelScoresValue.Content = Logic.CurrentMemo.Scores.ToString(); ButtonShow.Focus(); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Debug.Log("Duplicate Found!"); Destroy(gameObject); } DontDestroyOnLoad(gameObject); if (!anim.gameObject.activeSelf) { anim.gameObject.SetActive(true); } }