public LTDescr setOnUpdateColor( Action<Color,object> onUpdate ) { this._optional.onUpdateColorObject = onUpdate; this.hasUpdateCallback = true; return this; }
void Start() { LTDescr ltDescr = LeanTween.value(gameObject, colorFrom, colorTo, time); ltDescr.setDelay(delay); ltDescr.loopType = LeanTweenType.pingPong; ltDescr.setOnUpdateColor(OnUpdateColor); ltDescr.setDestroyOnComplete(destroyOnComplete); ltDescr.setRepeat(repeatTimes); }