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); }
public static void Show_Static(string popupTextString, string validateCharacters, Action <int> accept, Action cancel) { instance.Show(popupTextString, validateCharacters, accept, cancel); }