static public void DoTween_Indicator_Color(this CIndicator pIndicator, Color pColorStart, Color pColorDest, float fDuration) { pIndicator.DoSetColor(pColorStart); switch (pIndicator.p_eType) { case CIndicator.EIndicatorType.UGUI: pIndicator.p_pUIText.DOBlendableColor(pColorDest, fDuration); break; #if TMPro case CIndicator.EIndicatorType.TextMeshPro: pIndicator.p_pUIText_TMPro.DOBlendableColor(pColorDest, fDuration); break; #endif default: Debug.Log("Error"); break; } }