/// <summary> /// <para>Adds a new coroutine to the coroutineQueue. /// This coroutine will change the previous value to the new value</para> /// </summary> /// <param name="value">The value will be converted to string</param> public void UpdateValue(int value) { previousValue = newValue; newValue = value; if (previousValue == newValue) { UpdateValueUI(previousValue); return; } coroutineQueue.AddCoroutine(ChangeValue()); }