예제 #1
0
        private void OnInputFieldChanged(string arg)
        {
            InputTextEventArgs e = new InputTextEventArgs();

            e.InputText = arg;
            OnInputChanged(this, e);
        }
예제 #2
0
 protected virtual void OnInputChanged(object sender, InputTextEventArgs e)
 {
     if (InputChanged != null)
     {
         InputChanged(this, e);
     }
 }
예제 #3
0
 protected virtual void OnSaveData(object sender, InputTextEventArgs e)
 {
     if (SaveData != null)
     {
         SaveData(sender, e);
     }
 }
예제 #4
0
 void SaveData(object sender, InputTextEventArgs e)
 {
     gameState.CurrentName = e.InputText;
     //	Score should be set before  level
     gameState.StoreHighScoreData();
     uiController.UpdateHighScore(gameState.Top10);
     uiController.CurrentState = UIState.HighScore;
 }
예제 #5
0
        protected void OnSaveHighScore(object sender, InputTextEventArgs e)
        {
            AudioManager.Instance.PlaySFX(SoundFXType.MenuButton);

            if (SaveHighScore != null)
            {
                SaveHighScore(sender, e);
            }
        }
예제 #6
0
        private void CheckInputField(object sender, EventArgs e)
        {
            InputTextEventArgs ie = new InputTextEventArgs();

            ie.InputText = inputText;

            if (String.IsNullOrEmpty(inputText))
            {
                captionLabel.Show();
            }
            else
            {
                captionLabel.Hide();
                OnSaveHighScore(sender, ie);
            }
        }