Пример #1
0
    public static Tweener moveToAlpha(GameObject obj, float time, float target, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
    {
        Tweener tw = null;

//		tw = startSkyAnimoteObj (obj, time, "alpha", target, vkDurType, completeObj);
//		DOTween.to
        return(tw);
    }
Пример #2
0
 public static Tweener colorTo(Image obj, float time, Color target, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
 {
     Tweener tw = null;
     tw = obj.DOColor (target,time).SetEase ((Ease)vkDurType);
     if (completeObj != null) {
         tw.OnComplete (completeObj.OnCompleteMethod);
         tw.OnStart(completeObj.OnStartMethod);
         tw.OnStepComplete(completeObj.OnStepCompleteMethod);
     }
     return tw;
 }
Пример #3
0
    public static Tweener scaleBy(GameObject obj, float time, Vector3 offsetScale, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
    {
        Tweener tw = null;

        tw = obj.transform.DOScale(offsetScale, time).SetEase((Ease)vkDurType).From().SetRelative(true);
        if (completeObj != null)
        {
            tw.OnComplete(completeObj.OnCompleteMethod);
            tw.OnStart(completeObj.OnStartMethod);
            tw.OnStepComplete(completeObj.OnStepCompleteMethod);
        }
        return(tw);
    }
Пример #4
0
    public static Tweener colorTo(Image obj, float time, Color target, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
    {
        Tweener tw = null;

        tw = obj.DOColor(target, time).SetEase((Ease)vkDurType);
        if (completeObj != null)
        {
            tw.OnComplete(completeObj.OnCompleteMethod);
            tw.OnStart(completeObj.OnStartMethod);
            tw.OnStepComplete(completeObj.OnStepCompleteMethod);
        }
        return(tw);
    }
Пример #5
0
 public static Tweener moveTo(GameObject obj, float time, Vector3 target, bool isLocal, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
 {
     Tweener tw = null;
     if (isLocal)
         tw = obj.transform.DOLocalMove (target, time, false).SetEase ((Ease)vkDurType);
     else
         tw = obj.transform.DOMove (target, time, false).SetEase ((Ease)vkDurType);
     if (completeObj != null) {
         tw.OnComplete (completeObj.OnCompleteMethod);
         tw.OnStart(completeObj.OnStartMethod);
         tw.OnStepComplete(completeObj.OnStepCompleteMethod);
     }
     return tw;
 }
Пример #6
0
    public static Tweener moveTo(GameObject obj, float time, Vector3 target, bool isLocal, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
    {
        Tweener tw = null;

        if (isLocal)
        {
            tw = obj.transform.DOLocalMove(target, time, false).SetEase((Ease)vkDurType);
        }
        else
        {
            tw = obj.transform.DOMove(target, time, false).SetEase((Ease)vkDurType);
        }
        if (completeObj != null)
        {
            tw.OnComplete(completeObj.OnCompleteMethod);
            tw.OnStart(completeObj.OnStartMethod);
            tw.OnStepComplete(completeObj.OnStepCompleteMethod);
        }
        return(tw);
    }
Пример #7
0
    public static Sequence moveToSequence(GameObject obj, List <float> times, List <Vector3> targets, bool isLocal, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
    {
        Sequence sequence = DOTween.Sequence();

        if (completeObj != null)
        {
            sequence.OnComplete(completeObj.OnCompleteMethod);
        }
        for (int i = 0; i < times.Count; i++)
        {
            sequence.Append(moveTo(obj, times [i], targets [i], true, vkDurType, null));
        }
        sequence.Play();
        return(sequence);
    }
Пример #8
0
 public static Sequence moveToSequence(GameObject obj, List<float> times, List<Vector3> targets, bool isLocal, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
 {
     Sequence sequence = DOTween.Sequence();
     if (completeObj != null) {
         sequence.OnComplete (completeObj.OnCompleteMethod);
     }
     for (int i=0; i<times.Count; i++) {
         sequence.Append (moveTo (obj, times [i], targets [i], true, vkDurType, null));
     }
     sequence.Play ();
     return sequence;
 }
Пример #9
0
 public static Tweener moveToAlpha(GameObject obj, float time, float target, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
 {
     Tweener tw = null;
     //		tw = startSkyAnimoteObj (obj, time, "alpha", target, vkDurType, completeObj);
     //		DOTween.to
     return tw;
 }
Пример #10
0
 public static Tweener scaleTo(GameObject obj, float time, Vector3 scale, SkyAniDuration vkDurType = SkyAniDuration.AnimationCurve, SkyAniCallBack completeObj = null)
 {
     Tweener tw = null;
     tw = obj.transform.DOScale (scale, time).SetEase ((Ease)vkDurType);
     if (completeObj != null) {
         tw.OnComplete (completeObj.OnCompleteMethod);
         tw.OnStart(completeObj.OnStartMethod);
         tw.OnStepComplete(completeObj.OnStepCompleteMethod);
     }
     return tw;
 }