protected virtual void OnDisable ()
{
#if UNITY_EDITOR
if (!Application.isPlaying) return;
#endif
if (mInitDone && tweenTarget != null)
{
SetState(State.Normal, true); // <-- this right here
TweenColor tc = tweenTarget.GetComponent<TweenColor>();
if (tc != null)
{
tc.value = mColor;
tc.enabled = false;
}
}
}