示例#1
0
        public static TweenScript CustomTweenVector3(AnimCustomMethodVector3 method, Vector3 from, Vector3 to,
                                                     float time             = 0.5f,
                                                     float delayTime        = 0,
                                                     bool IsIgnoreTimeScale = false,
                                                     LoopType repeatType    = LoopType.Once,
                                                     int repeatCount        = -1)
        {
            TweenScript tweenTmp = StackObjectPool <TweenScript> .GetObject();

            tweenTmp.animType       = AnimType.Custom_Vector3;
            tweenTmp.fromV3         = from;
            tweenTmp.toV2           = to;
            tweenTmp.customMethodV3 = method;
            tweenTmp.SetDelay(delayTime);
            tweenTmp.totalTime = time;
            tweenTmp.SetLoopType(repeatType, repeatCount);
            // l_tmp.isIgnoreTimeScale = IsIgnoreTimeScale;
            tweenTmp.Init();
            GetInstance().animList.Add(tweenTmp);
            return(tweenTmp);
        }