public void centerText(string s, float seconds = 4, bool fast = false) { //if (Time.time - lastTextTime < -1) //{ var stringTime = new Loader.StringTime() { f = seconds, s = s }; //if (fast) //{ // centerTextList.Clear(); // lastTextTime = float.MinValue; //} if (!centerTextList.Contains(stringTime)) { centerTextList.Add(stringTime); } //} //lastTextTime = Time.time; //if (olds == s) return; //olds = s; //CenterText.text = s; }
public void centerText(string s, float seconds = 4, bool fast = false) { //if (Time.time - lastTextTime < -1) //{ var stringTime = new Loader.StringTime() { f = seconds, s = s }; //if (fast) //{ // centerTextList.Clear(); // lastTextTime = float.MinValue; //} if (!centerTextList.Contains(stringTime)) centerTextList.Add(stringTime); //} //lastTextTime = Time.time; //if (olds == s) return; //olds = s; //CenterText.text = s; }