public virtual void PauseMotion(HorizontalGate target) { if (MotionTweenId != string.Empty) { DOTween.Pause(GetIdForGate(MotionTweenId, target)); } }
public override void PlayMotion(HorizontalGate target) { DOTween.To(() => target.GateSize, value => target.GateSize = value, EndSize, Time) .SetId(GetIdForGate(MotionTweenId, target)) .SetLoops(LoopType == LoopType.Restart ? 0 : -1, LoopType) .SetEase(Ease); }
public override void PlayMotion(HorizontalGate target) { target.transform.position = new Vector3(XFrom, target.transform.position.y, target.transform.position.z); target.transform.DOMoveX(XTo, Time) .SetId(GetIdForGate(MotionTweenId, target)) .SetLoops(LoopType == LoopType.Restart ? 0 : -1, LoopType) .SetEase(Ease); }
public virtual void PlayMotion(HorizontalGate target) { }
public string GetIdForGate(string origin, HorizontalGate gate) { return(gate.MakeUniqueId(origin).ToString()); }