예제 #1
0
 public virtual void PauseMotion(HorizontalGate target)
 {
     if (MotionTweenId != string.Empty)
     {
         DOTween.Pause(GetIdForGate(MotionTweenId, target));
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public virtual void PlayMotion(HorizontalGate target)
 {
 }
예제 #5
0
 public string GetIdForGate(string origin, HorizontalGate gate)
 {
     return(gate.MakeUniqueId(origin).ToString());
 }