|
@@ -12,6 +12,15 @@ public enum Curve
|
|
|
EaseOutQuad,
|
|
|
}
|
|
|
|
|
|
+public enum EventType
|
|
|
+{
|
|
|
+ ForwardStart,
|
|
|
+ BackwardStart,
|
|
|
+ ForwardFinish,
|
|
|
+ BackwardFinish,
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
public delegate float ShakeFunctionF(float timer, float duration, int repeat, float start, float strength);
|
|
|
|
|
|
public delegate Color ShakeFunctionC(float timer, float duration, int repeat, Color start, Color strength);
|
|
@@ -409,154 +418,174 @@ public class ManaAnim : Regist
|
|
|
|
|
|
#region 播放动画
|
|
|
|
|
|
- public static void Shake(Transform target, float duration, int repeat, Vector3 strength, Curve curve)
|
|
|
+ public static Shake Shake(Transform target, float duration, int repeat, Vector3 strength, Curve curve)
|
|
|
{
|
|
|
- Shake shake;
|
|
|
+ Shake move;
|
|
|
|
|
|
- if (ShakeDic.TryGetValue(target, out shake))
|
|
|
+ if (ShakeDic.TryGetValue(target, out move))
|
|
|
{
|
|
|
- shake.StartShake(repeat, duration, strength, curve);
|
|
|
+ move.StartShake(repeat, duration, strength, curve);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- shake = CreateShake(target);
|
|
|
+ move = CreateShake(target);
|
|
|
|
|
|
- shake.StartShake(repeat, duration, strength, curve);
|
|
|
+ move.StartShake(repeat, duration, strength, curve);
|
|
|
}
|
|
|
+
|
|
|
+ return move;
|
|
|
}
|
|
|
|
|
|
- public static void Move2D(Transform target, Vector3 destination, float duration, bool local, Curve curve)
|
|
|
+ public static Move2D Move2D(Transform target, Vector3 destination, float duration, bool local, Curve curve)
|
|
|
{
|
|
|
- Move2D move2D;
|
|
|
+ Move2D move;
|
|
|
|
|
|
- if (MoveDic2D.TryGetValue(target, out move2D))
|
|
|
+ if (MoveDic2D.TryGetValue(target, out move))
|
|
|
{
|
|
|
- move2D.StartMove(destination, duration, local, curve);
|
|
|
+ move.StartMove(destination, duration, local, curve);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- move2D = CreateMove2D(target);
|
|
|
+ move = CreateMove2D(target);
|
|
|
|
|
|
- move2D.StartMove(destination, duration, local, curve);
|
|
|
+ move.StartMove(destination, duration, local, curve);
|
|
|
}
|
|
|
+
|
|
|
+ return move;
|
|
|
}
|
|
|
|
|
|
- public static void Move3D(Transform target, Vector3 destination, float duration, bool local, Curve curve)
|
|
|
+ public static Move3D Move3D(Transform target, Vector3 destination, float duration, bool local, Curve curve)
|
|
|
{
|
|
|
- Move3D move3D;
|
|
|
+ Move3D move;
|
|
|
|
|
|
- if (MoveDic3D.TryGetValue(target, out move3D))
|
|
|
+ if (MoveDic3D.TryGetValue(target, out move))
|
|
|
{
|
|
|
- move3D.StartMove(destination, duration, local, curve);
|
|
|
+ move.StartMove(destination, duration, local, curve);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- move3D = CreateMove3D(target);
|
|
|
+ move = CreateMove3D(target);
|
|
|
|
|
|
- move3D.StartMove(destination, duration, local, curve);
|
|
|
+ move.StartMove(destination, duration, local, curve);
|
|
|
}
|
|
|
+
|
|
|
+ return move;
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void TweenForSr(Transform target)
|
|
|
+ public static TweenSr TweenForSr(Transform target)
|
|
|
{
|
|
|
- TweenSr tweenSr;
|
|
|
+ TweenSr tween;
|
|
|
|
|
|
- if (TweenSrDic.TryGetValue(target, out tweenSr))
|
|
|
+ if (TweenSrDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenSr.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForCG(Transform target)
|
|
|
+ public static TweenCG TweenForCG(Transform target)
|
|
|
{
|
|
|
- TweenCG tweenCG;
|
|
|
+ TweenCG tween;
|
|
|
|
|
|
- if (TweenCgDic.TryGetValue(target, out tweenCG))
|
|
|
+ if (TweenCgDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenCG.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForGra(Transform target)
|
|
|
+ public static TweenGra TweenForGra(Transform target)
|
|
|
{
|
|
|
- TweenGra tweenGra;
|
|
|
+ TweenGra tween;
|
|
|
|
|
|
- if (TweenGraDic.TryGetValue(target, out tweenGra))
|
|
|
+ if (TweenGraDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenGra.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForVec(Transform target)
|
|
|
+ public static TweenVec TweenForVec(Transform target)
|
|
|
{
|
|
|
- TweenVec tweenVec;
|
|
|
+ TweenVec tween;
|
|
|
|
|
|
- if (TweenVecDic.TryGetValue(target, out tweenVec))
|
|
|
+ if (TweenVecDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenVec.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForText(Transform target)
|
|
|
+ public static TweenText TweenForText(Transform target)
|
|
|
{
|
|
|
- TweenText tweenText;
|
|
|
+ TweenText tween;
|
|
|
|
|
|
- if (TweenTextDic.TryGetValue(target, out tweenText))
|
|
|
+ if (TweenTextDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenText.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForRect(Transform target)
|
|
|
+ public static TweenRect TweenForRect(Transform target)
|
|
|
{
|
|
|
- TweenRect tweenRect;
|
|
|
+ TweenRect tween;
|
|
|
|
|
|
- if (TweenRectDic.TryGetValue(target, out tweenRect))
|
|
|
+ if (TweenRectDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenRect.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForScale(Transform target)
|
|
|
+ public static TweenScale TweenForScale(Transform target)
|
|
|
{
|
|
|
- TweenScale tweenScale;
|
|
|
+ TweenScale tween;
|
|
|
|
|
|
- if (TweenScaleDic.TryGetValue(target, out tweenScale))
|
|
|
+ if (TweenScaleDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenScale.StartForward();
|
|
|
+ tween.StartForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForAudio(Transform target)
|
|
|
+ public static TweenAudio TweenForAudio(Transform target)
|
|
|
{
|
|
|
TweenAudio tween;
|
|
|
|
|
@@ -568,9 +597,11 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenForNumber(Transform target)
|
|
|
+ public static TweenNumber TweenForNumber(Transform target)
|
|
|
{
|
|
|
TweenNumber tween;
|
|
|
|
|
@@ -582,108 +613,124 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void TweenBacSr(Transform target)
|
|
|
+ public static TweenSr TweenBacSr(Transform target)
|
|
|
{
|
|
|
- TweenSr tweenSr;
|
|
|
+ TweenSr tween;
|
|
|
|
|
|
- if (TweenSrDic.TryGetValue(target, out tweenSr))
|
|
|
+ if (TweenSrDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenSr.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacCG(Transform target)
|
|
|
+ public static TweenCG TweenBacCG(Transform target)
|
|
|
{
|
|
|
- TweenCG tweenCG;
|
|
|
+ TweenCG tween;
|
|
|
|
|
|
- if (TweenCgDic.TryGetValue(target, out tweenCG))
|
|
|
+ if (TweenCgDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenCG.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacGra(Transform target)
|
|
|
+ public static TweenGra TweenBacGra(Transform target)
|
|
|
{
|
|
|
- TweenGra tweenGra;
|
|
|
+ TweenGra tween;
|
|
|
|
|
|
- if (TweenGraDic.TryGetValue(target, out tweenGra))
|
|
|
+ if (TweenGraDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenGra.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception(target.name);
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacVec(Transform target)
|
|
|
+ public static TweenVec TweenBacVec(Transform target)
|
|
|
{
|
|
|
- TweenVec tweenVec;
|
|
|
+ TweenVec tween;
|
|
|
|
|
|
- if (TweenVecDic.TryGetValue(target, out tweenVec))
|
|
|
+ if (TweenVecDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenVec.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception(target.name);
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacText(Transform target)
|
|
|
+ public static TweenText TweenBacText(Transform target)
|
|
|
{
|
|
|
- TweenText tweenText;
|
|
|
+ TweenText tween;
|
|
|
|
|
|
- if (TweenTextDic.TryGetValue(target, out tweenText))
|
|
|
+ if (TweenTextDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenText.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacRect(Transform target)
|
|
|
+ public static TweenRect TweenBacRect(Transform target)
|
|
|
{
|
|
|
- TweenRect tweenRect;
|
|
|
+ TweenRect tween;
|
|
|
|
|
|
- if (TweenRectDic.TryGetValue(target, out tweenRect))
|
|
|
+ if (TweenRectDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenRect.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacScale(Transform target)
|
|
|
+ public static TweenScale TweenBacScale(Transform target)
|
|
|
{
|
|
|
- TweenScale tweenScale;
|
|
|
+ TweenScale tween;
|
|
|
|
|
|
- if (TweenScaleDic.TryGetValue(target, out tweenScale))
|
|
|
+ if (TweenScaleDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenScale.StartBackward();
|
|
|
+ tween.StartBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacAudio(Transform target)
|
|
|
+ public static TweenAudio TweenBacAudio(Transform target)
|
|
|
{
|
|
|
TweenAudio tween;
|
|
|
|
|
@@ -695,9 +742,11 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenBacNumber(Transform target)
|
|
|
+ public static TweenNumber TweenBacNumber(Transform target)
|
|
|
{
|
|
|
TweenNumber tween;
|
|
|
|
|
@@ -709,108 +758,124 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void TweenConForSr(Transform target)
|
|
|
+ public static TweenSr TweenConForSr(Transform target)
|
|
|
{
|
|
|
- TweenSr tweenSr;
|
|
|
+ TweenSr tween;
|
|
|
|
|
|
- if (TweenSrDic.TryGetValue(target, out tweenSr))
|
|
|
+ if (TweenSrDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenSr.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForCG(Transform target)
|
|
|
+ public static TweenCG TweenConForCG(Transform target)
|
|
|
{
|
|
|
- TweenCG tweenCG;
|
|
|
+ TweenCG tween;
|
|
|
|
|
|
- if (TweenCgDic.TryGetValue(target, out tweenCG))
|
|
|
+ if (TweenCgDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenCG.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForGra(Transform target)
|
|
|
+ public static TweenGra TweenConForGra(Transform target)
|
|
|
{
|
|
|
- TweenGra tweenGra;
|
|
|
+ TweenGra tween;
|
|
|
|
|
|
- if (TweenGraDic.TryGetValue(target, out tweenGra))
|
|
|
+ if (TweenGraDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenGra.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForVec(Transform target)
|
|
|
+ public static TweenVec TweenConForVec(Transform target)
|
|
|
{
|
|
|
- TweenVec tweenVec;
|
|
|
+ TweenVec tween;
|
|
|
|
|
|
- if (TweenVecDic.TryGetValue(target, out tweenVec))
|
|
|
+ if (TweenVecDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenVec.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForText(Transform target)
|
|
|
+ public static TweenText TweenConForText(Transform target)
|
|
|
{
|
|
|
- TweenText tweenText;
|
|
|
+ TweenText tween;
|
|
|
|
|
|
- if (TweenTextDic.TryGetValue(target, out tweenText))
|
|
|
+ if (TweenTextDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenText.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForRect(Transform target)
|
|
|
+ public static TweenRect TweenConForRect(Transform target)
|
|
|
{
|
|
|
- TweenRect tweenRect;
|
|
|
+ TweenRect tween;
|
|
|
|
|
|
- if (TweenRectDic.TryGetValue(target, out tweenRect))
|
|
|
+ if (TweenRectDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenRect.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForScale(Transform target)
|
|
|
+ public static TweenScale TweenConForScale(Transform target)
|
|
|
{
|
|
|
- TweenScale tweenScale;
|
|
|
+ TweenScale tween;
|
|
|
|
|
|
- if (TweenScaleDic.TryGetValue(target, out tweenScale))
|
|
|
+ if (TweenScaleDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenScale.ConfineForward();
|
|
|
+ tween.ConfineForward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForAudio(Transform target)
|
|
|
+ public static TweenAudio TweenConForAudio(Transform target)
|
|
|
{
|
|
|
TweenAudio tween;
|
|
|
|
|
@@ -822,9 +887,11 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConForNumber(Transform target)
|
|
|
+ public static TweenNumber TweenConForNumber(Transform target)
|
|
|
{
|
|
|
TweenNumber tween;
|
|
|
|
|
@@ -836,108 +903,124 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void TweenConBacSr(Transform target)
|
|
|
+ public static TweenSr TweenConBacSr(Transform target)
|
|
|
{
|
|
|
- TweenSr tweenSr;
|
|
|
+ TweenSr tween;
|
|
|
|
|
|
- if (TweenSrDic.TryGetValue(target, out tweenSr))
|
|
|
+ if (TweenSrDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenSr.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacCG(Transform target)
|
|
|
+ public static TweenCG TweenConBacCG(Transform target)
|
|
|
{
|
|
|
- TweenCG tweenCG;
|
|
|
+ TweenCG tween;
|
|
|
|
|
|
- if (TweenCgDic.TryGetValue(target, out tweenCG))
|
|
|
+ if (TweenCgDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenCG.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacGra(Transform target)
|
|
|
+ public static TweenGra TweenConBacGra(Transform target)
|
|
|
{
|
|
|
- TweenGra tweenGra;
|
|
|
-
|
|
|
- if (TweenGraDic.TryGetValue(target, out tweenGra))
|
|
|
+ TweenGra tween;
|
|
|
+
|
|
|
+ if (TweenGraDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenGra.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception(target.name);
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacVec(Transform target)
|
|
|
+ public static TweenVec TweenConBacVec(Transform target)
|
|
|
{
|
|
|
- TweenVec tweenVec;
|
|
|
+ TweenVec tween;
|
|
|
|
|
|
- if (TweenVecDic.TryGetValue(target, out tweenVec))
|
|
|
+ if (TweenVecDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenVec.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception(target.name);
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacText(Transform target)
|
|
|
+ public static TweenText TweenConBacText(Transform target)
|
|
|
{
|
|
|
- TweenText tweenText;
|
|
|
+ TweenText tween;
|
|
|
|
|
|
- if (TweenTextDic.TryGetValue(target, out tweenText))
|
|
|
+ if (TweenTextDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenText.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacRect(Transform target)
|
|
|
+ public static TweenRect TweenConBacRect(Transform target)
|
|
|
{
|
|
|
- TweenRect tweenRect;
|
|
|
+ TweenRect tween;
|
|
|
|
|
|
- if (TweenRectDic.TryGetValue(target, out tweenRect))
|
|
|
+ if (TweenRectDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenRect.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacScale(Transform target)
|
|
|
+ public static TweenScale TweenConBacScale(Transform target)
|
|
|
{
|
|
|
- TweenScale tweenScale;
|
|
|
+ TweenScale tween;
|
|
|
|
|
|
- if (TweenScaleDic.TryGetValue(target, out tweenScale))
|
|
|
+ if (TweenScaleDic.TryGetValue(target, out tween))
|
|
|
{
|
|
|
- tweenScale.ConfineBackward();
|
|
|
+ tween.ConfineBackward();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacAudio(Transform target)
|
|
|
+ public static TweenAudio TweenConBacAudio(Transform target)
|
|
|
{
|
|
|
TweenAudio tween;
|
|
|
|
|
@@ -949,9 +1032,11 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
- public static void TweenConBacNumber(Transform target)
|
|
|
+ public static TweenNumber TweenConBacNumber(Transform target)
|
|
|
{
|
|
|
TweenNumber tween;
|
|
|
|
|
@@ -963,6 +1048,8 @@ public class ManaAnim : Regist
|
|
|
{
|
|
|
throw new Exception();
|
|
|
}
|
|
|
+
|
|
|
+ return tween;
|
|
|
}
|
|
|
|
|
|
#endregion
|