示例#1
0
 private void Start()
 {
     _highscoretable = GameObject.Find("HighscoreTable").GetComponent <highscoretable>();
     inputWindow.Show("Enter name", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 3,
                      () =>
     {
         CMDebug.TextPopupMouse("Cancel!");
     }, (inputText) =>
     {
         CMDebug.TextPopupMouse("Ok: " + inputText);
         if (GameObject.Find("scoreman") == null)
         {
         }
         else
         {
             _highscoretable.AddHighscore(m_score, inputText);
         }
     });
 }
 public static void Show_Static(string titleString, string inputString, string validCharacters, int characterLimit, Action onCancel, Action <string> onOk)
 {
     instance.Show(titleString, inputString, validCharacters, characterLimit, onCancel, onOk);
 }
示例#3
0
 public static void Show_Static(string popupTextString, string validateCharacters, Action <int> accept, Action cancel)
 {
     instance.Show(popupTextString, validateCharacters, accept, cancel);
 }