Пример #1
0
    TMPro.TMP_Text tmp;   //reference to TMP text

    private void Start()
    {
        if (!prefab)
        {
            if (source == null || source.Equals(""))
            {
                source = tmp.text;
            }
            strings = Squiggle_Maker.GetStrings(source);
            if (debug)
            {
                Debug.Log(source);
                Debug.Log(strings[0]);
                Debug.Log(strings[1]);
                Debug.Log(strings[2]);
            }
        }
    }
Пример #2
0
 //reconstructs text arrays
 public void SetSource(string s)
 {
     strings = Squiggle_Maker.GetStrings(s);
 }