public LTDescr setFrom( Vector3 from ) { if(this.trans){ this.init(); } this.from = from; // this.hasInitiliazed = true; // this is set, so that the "from" value isn't overwritten later on when the tween starts this.diff = this.to - this.from; return this; }
void Start() { LTDescr ltDescr = LeanTween.moveLocalX(cloudRoot.gameObject, -1136, 200f); ltDescr.setFrom(1136); ltDescr.tweenType = LeanTweenType.linear; ltDescr.setRepeat(-1); }