Beispiel #1
0
	protected override void Awake()
	{
		base.Awake();

        labelNumber = GetComponent<Text>();
        tween = GetComponent<DOTweenAnimation>();
	}
Beispiel #2
0
 static int DOPause(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)LuaScriptMgr.GetUnityObjectSelf(L, 1, "DG.Tweening.DOTweenAnimation");
     obj.DOPause();
     return(0);
 }
Beispiel #3
0
    static int DORestart(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
                obj.DORestart();
                return(0);
            }
            else if (count == 2)
            {
                DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
                bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
                obj.DORestart(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.DOTweenAnimation.DORestart"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #4
0
    static int DORestart(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)LuaScriptMgr.GetUnityObjectSelf(L, 1, "DG.Tweening.DOTweenAnimation");
        bool arg0 = LuaScriptMgr.GetBoolean(L, 2);

        obj.DORestart(arg0);
        return(0);
    }
Beispiel #5
0
 private void Play()
 {
     Vector3[] _arrV3 = new Vector3[3];
     _arrV3[0] = new Vector3(0, 0, 0);
     _arrV3[1] = new Vector3(200, 200, 0);
     _arrV3[2] = new Vector3(400, 50, 0);
     m_transform.DOLocalPath(_arrV3,0.5f).SetEase(Ease.OutCubic);
     DOTweenAnimation dot = new DOTweenAnimation();
     //dot.
 }
    public void OnEndEdit(DG.Tweening.DOTweenAnimation anim)
    {
        InputField field = anim.GetComponent <InputField>();

        if (!User.Roles.Contains(role))
        {
            role = roleField.text = _role;
            anim.onComplete.AddListener(() =>
            {
                anim.endValueColor = Color.HSVToRGB(120 / 360f, 32 / 255f, 1f);
                anim.CreateTween();
                anim.onComplete.RemoveAllListeners();
            });
            anim.endValueColor = Color.HSVToRGB(0, 32 / 255f, 1f);
            anim.CreateTween();
            anim.DORestart();
            return;
        }

        using (SqliteCommand command = new SqliteCommand(Database.DB))
        {
            if (field == usernameField)
            {
                command.CommandText = string.Format(
                    "UPDATE hours SET username = \"{0}\" WHERE username = (SELECT username FROM users WHERE role = \"{1}\" AND full_name = \"{2}\");" +
                    "UPDATE leaves SET username = \"{0}\" WHERE username = (SELECT username FROM users WHERE role = \"{1}\" AND full_name = \"{2}\");" +
                    "UPDATE users SET username = \"{0}\" WHERE role = \"{1}\" AND full_name = \"{2}\";",
                    username, role, fullName);
            }
            else if (field == roleField)
            {
                command.CommandText = string.Format(
                    "UPDATE users SET  role = \"{1}\" " +
                    "WHERE username = \"{0}\"" +
                    "AND full_name = \"{2}\"",
                    username, role, fullName);
            }
            else if (field == fullNameField)
            {
                command.CommandText = string.Format(
                    "UPDATE users SET full_name = \"{2}\" " +
                    "WHERE role = \"{1}\" " +
                    "AND username = \"{0}\"",
                    username, role, fullName);
            }
            command.ExecuteNonQuery();
        }

        anim.DORestart();
        User.Instance.SetUser(username);
    }
Beispiel #7
0
 static int DOPlayBackwards(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
         obj.DOPlayBackwards();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #8
0
 static int DORestart(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.DORestart(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #9
0
 static int GetTweens(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
         System.Collections.Generic.List <DG.Tweening.Tween> o = obj.GetTweens();
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #10
0
 static int DORestartAllById(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)ToLua.CheckObject <DG.Tweening.DOTweenAnimation>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.DORestartAllById(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #11
0
    static int set_optionalBool0(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.optionalBool0 = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index optionalBool0 on a nil value"));
        }
    }
Beispiel #12
0
    static int set_endValueColor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.Color            arg0 = ToLua.ToColor(L, 2);
            obj.endValueColor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index endValueColor on a nil value"));
        }
    }
Beispiel #13
0
    static int set_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.Component        arg0 = (UnityEngine.Component)ToLua.CheckObject <UnityEngine.Component>(L, 2);
            obj.target = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index target on a nil value"));
        }
    }
Beispiel #14
0
    static int get_forcedTargetType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            DG.Tweening.Core.TargetType  ret = obj.forcedTargetType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index forcedTargetType on a nil value"));
        }
    }
Beispiel #15
0
    static int set_endValueTransform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.Transform        arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2);
            obj.endValueTransform = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index endValueTransform on a nil value"));
        }
    }
Beispiel #16
0
    static int set_loops(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.loops = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loops on a nil value"));
        }
    }
Beispiel #17
0
    static int set_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.id = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index id on a nil value"));
        }
    }
Beispiel #18
0
    static int set_easeCurve(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.AnimationCurve   arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationCurve));
            obj.easeCurve = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index easeCurve on a nil value"));
        }
    }
Beispiel #19
0
    static int set_loopType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            DG.Tweening.LoopType         arg0 = (DG.Tweening.LoopType)ToLua.CheckObject(L, 2, typeof(DG.Tweening.LoopType));
            obj.loopType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loopType on a nil value"));
        }
    }
Beispiel #20
0
    static int get_optionalString(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            string ret = obj.optionalString;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index optionalString on a nil value"));
        }
    }
Beispiel #21
0
    static int get_endValueRect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.Rect             ret = obj.endValueRect;
            ToLua.PushValue(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index endValueRect on a nil value"));
        }
    }
Beispiel #22
0
    static int get_optionalScrambleMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            DG.Tweening.ScrambleMode     ret = obj.optionalScrambleMode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index optionalScrambleMode on a nil value"));
        }
    }
Beispiel #23
0
    static int get_endValueFloat(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            float ret = obj.endValueFloat;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index endValueFloat on a nil value"));
        }
    }
Beispiel #24
0
    static int get_autoPlay(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            bool ret = obj.autoPlay;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index autoPlay on a nil value"));
        }
    }
Beispiel #25
0
    static int get_loops(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            int ret = obj.loops;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loops on a nil value"));
        }
    }
Beispiel #26
0
    static int get_easeCurve(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.AnimationCurve   ret = obj.easeCurve;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index easeCurve on a nil value"));
        }
    }
Beispiel #27
0
    static int set_endValueRect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation obj  = (DG.Tweening.DOTweenAnimation)o;
            UnityEngine.Rect             arg0 = StackTraits <UnityEngine.Rect> .Check(L, 2);

            obj.endValueRect = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index endValueRect on a nil value"));
        }
    }
        int _totComponentsOnSrc; // Used to determine if a Component is added or removed from the source

        // ===================================================================================
        // MONOBEHAVIOUR METHODS -------------------------------------------------------------

        void OnEnable()
        {
            _src = target as DOTweenAnimation;

            onStartProperty = base.serializedObject.FindProperty("onStart");
            onPlayProperty = base.serializedObject.FindProperty("onPlay");
            onUpdateProperty = base.serializedObject.FindProperty("onUpdate");
            onStepCompleteProperty = base.serializedObject.FindProperty("onStepComplete");
            onCompleteProperty = base.serializedObject.FindProperty("onComplete");

            // Convert _AnimationType to _animationTypeNoSlashes
            int len = _AnimationType.Length;
            _animationTypeNoSlashes = new string[len];
            for (int i = 0; i < len; ++i) {
                string a = _AnimationType[i];
                a = a.Replace("/", "");
                _animationTypeNoSlashes[i] = a;
            }
        }
        // Token: 0x06000157 RID: 343 RVA: 0x000074F8 File Offset: 0x000058F8
        public void CreateTween()
        {
            if (this.target == null)
            {
                Debug.LogWarning(string.Format("{0} :: This tween's target is NULL, because the animation was created with a DOTween Pro version older than 0.9.255. To fix this, exit Play mode then simply select this object, and it will update automatically", base.gameObject.name), base.gameObject);
                return;
            }
            if (this.forcedTargetType != TargetType.Unset)
            {
                this.targetType = this.forcedTargetType;
            }
            if (this.targetType == TargetType.Unset)
            {
                this.targetType = DOTweenAnimation.TypeToDOTargetType(this.target.GetType());
            }
            switch (this.animationType)
            {
            case DOTweenAnimationType.Move:
                if (this.useTargetAsV3)
                {
                    this.isRelative = false;
                    if (this.endValueTransform == null)
                    {
                        Debug.LogWarning(string.Format("{0} :: This tween's TO target is NULL, a Vector3 of (0,0,0) will be used instead", base.gameObject.name), base.gameObject);
                        this.endValueV3 = Vector3.zero;
                    }
                    else if (this.targetType == TargetType.RectTransform)
                    {
                        RectTransform rectTransform = this.endValueTransform as RectTransform;
                        if (rectTransform == null)
                        {
                            Debug.LogWarning(string.Format("{0} :: This tween's TO target should be a RectTransform, a Vector3 of (0,0,0) will be used instead", base.gameObject.name), base.gameObject);
                            this.endValueV3 = Vector3.zero;
                        }
                        else
                        {
                            RectTransform rectTransform2 = this.target as RectTransform;
                            if (rectTransform2 == null)
                            {
                                Debug.LogWarning(string.Format("{0} :: This tween's target and TO target are not of the same type. Please reassign the values", base.gameObject.name), base.gameObject);
                            }
                            else
                            {
                                this.endValueV3 = DOTweenUtils46.SwitchToRectTransform(rectTransform, rectTransform2);
                            }
                        }
                    }
                    else
                    {
                        this.endValueV3 = this.endValueTransform.position;
                    }
                }
                switch (this.targetType)
                {
                case TargetType.RectTransform:
                    this.tween = ((RectTransform)this.target).DOAnchorPos3D(this.endValueV3, this.duration, this.optionalBool0);
                    break;

                case TargetType.Rigidbody:
                    this.tween = ((Rigidbody)this.target).DOMove(this.endValueV3, this.duration, this.optionalBool0);
                    break;

                case TargetType.Rigidbody2D:
                    this.tween = ((Rigidbody2D)this.target).DOMove(this.endValueV3, this.duration, this.optionalBool0);
                    break;

                case TargetType.Transform:
                    this.tween = ((Transform)this.target).DOMove(this.endValueV3, this.duration, this.optionalBool0);
                    break;
                }
                break;

            case DOTweenAnimationType.LocalMove:
                this.tween = base.transform.DOLocalMove(this.endValueV3, this.duration, this.optionalBool0);
                break;

            case DOTweenAnimationType.Rotate:
            {
                TargetType targetType = this.targetType;
                if (targetType != TargetType.Transform)
                {
                    if (targetType != TargetType.Rigidbody2D)
                    {
                        if (targetType == TargetType.Rigidbody)
                        {
                            this.tween = ((Rigidbody)this.target).DORotate(this.endValueV3, this.duration, this.optionalRotationMode);
                        }
                    }
                    else
                    {
                        this.tween = ((Rigidbody2D)this.target).DORotate(this.endValueFloat, this.duration);
                    }
                }
                else
                {
                    this.tween = ((Transform)this.target).DORotate(this.endValueV3, this.duration, this.optionalRotationMode);
                }
                break;
            }

            case DOTweenAnimationType.LocalRotate:
                this.tween = base.transform.DOLocalRotate(this.endValueV3, this.duration, this.optionalRotationMode);
                break;

            case DOTweenAnimationType.Scale:
                this.tween = base.transform.DOScale((!this.optionalBool0) ? this.endValueV3 : new Vector3(this.endValueFloat, this.endValueFloat, this.endValueFloat), this.duration);
                break;

            case DOTweenAnimationType.Color:
                this.isRelative = false;
                switch (this.targetType)
                {
                case TargetType.Image:
                    this.tween = ((Image)this.target).DOColor(this.endValueColor, this.duration);
                    break;

                case TargetType.Light:
                    this.tween = ((Light)this.target).DOColor(this.endValueColor, this.duration);
                    break;

                case TargetType.Renderer:
                    this.tween = ((Renderer)this.target).material.DOColor(this.endValueColor, this.duration);
                    break;

                case TargetType.SpriteRenderer:
                    this.tween = ((SpriteRenderer)this.target).DOColor(this.endValueColor, this.duration);
                    break;

                case TargetType.Text:
                    this.tween = ((Text)this.target).DOColor(this.endValueColor, this.duration);
                    break;
                }
                break;

            case DOTweenAnimationType.Fade:
                this.isRelative = false;
                switch (this.targetType)
                {
                case TargetType.CanvasGroup:
                    this.tween = ((CanvasGroup)this.target).DOFade(this.endValueFloat, this.duration);
                    break;

                case TargetType.Image:
                    this.tween = ((Image)this.target).DOFade(this.endValueFloat, this.duration);
                    break;

                case TargetType.Light:
                    this.tween = ((Light)this.target).DOIntensity(this.endValueFloat, this.duration);
                    break;

                case TargetType.Renderer:
                    this.tween = ((Renderer)this.target).material.DOFade(this.endValueFloat, this.duration);
                    break;

                case TargetType.SpriteRenderer:
                    this.tween = ((SpriteRenderer)this.target).DOFade(this.endValueFloat, this.duration);
                    break;

                case TargetType.Text:
                    this.tween = ((Text)this.target).DOFade(this.endValueFloat, this.duration);
                    break;
                }
                break;

            case DOTweenAnimationType.Text:
            {
                TargetType targetType2 = this.targetType;
                if (targetType2 == TargetType.Text)
                {
                    this.tween = ((Text)this.target).DOText(this.endValueString, this.duration, this.optionalBool0, this.optionalScrambleMode, this.optionalString);
                }
                break;
            }

            case DOTweenAnimationType.PunchPosition:
            {
                TargetType targetType3 = this.targetType;
                if (targetType3 != TargetType.RectTransform)
                {
                    if (targetType3 == TargetType.Transform)
                    {
                        this.tween = ((Transform)this.target).DOPunchPosition(this.endValueV3, this.duration, this.optionalInt0, this.optionalFloat0, this.optionalBool0);
                    }
                }
                else
                {
                    this.tween = ((RectTransform)this.target).DOPunchAnchorPos(this.endValueV3, this.duration, this.optionalInt0, this.optionalFloat0, this.optionalBool0);
                }
                break;
            }

            case DOTweenAnimationType.PunchRotation:
                this.tween = base.transform.DOPunchRotation(this.endValueV3, this.duration, this.optionalInt0, this.optionalFloat0);
                break;

            case DOTweenAnimationType.PunchScale:
                this.tween = base.transform.DOPunchScale(this.endValueV3, this.duration, this.optionalInt0, this.optionalFloat0);
                break;

            case DOTweenAnimationType.ShakePosition:
            {
                TargetType targetType4 = this.targetType;
                if (targetType4 != TargetType.RectTransform)
                {
                    if (targetType4 == TargetType.Transform)
                    {
                        this.tween = ((Transform)this.target).DOShakePosition(this.duration, this.endValueV3, this.optionalInt0, this.optionalFloat0, this.optionalBool0, true);
                    }
                }
                else
                {
                    this.tween = ((RectTransform)this.target).DOShakeAnchorPos(this.duration, this.endValueV3, this.optionalInt0, this.optionalFloat0, this.optionalBool0, true);
                }
                break;
            }

            case DOTweenAnimationType.ShakeRotation:
                this.tween = base.transform.DOShakeRotation(this.duration, this.endValueV3, this.optionalInt0, this.optionalFloat0, true);
                break;

            case DOTweenAnimationType.ShakeScale:
                this.tween = base.transform.DOShakeScale(this.duration, this.endValueV3, this.optionalInt0, this.optionalFloat0, true);
                break;

            case DOTweenAnimationType.CameraAspect:
                this.tween = ((Camera)this.target).DOAspect(this.endValueFloat, this.duration);
                break;

            case DOTweenAnimationType.CameraBackgroundColor:
                this.tween = ((Camera)this.target).DOColor(this.endValueColor, this.duration);
                break;

            case DOTweenAnimationType.CameraFieldOfView:
                this.tween = ((Camera)this.target).DOFieldOfView(this.endValueFloat, this.duration);
                break;

            case DOTweenAnimationType.CameraOrthoSize:
                this.tween = ((Camera)this.target).DOOrthoSize(this.endValueFloat, this.duration);
                break;

            case DOTweenAnimationType.CameraPixelRect:
                this.tween = ((Camera)this.target).DOPixelRect(this.endValueRect, this.duration);
                break;

            case DOTweenAnimationType.CameraRect:
                this.tween = ((Camera)this.target).DORect(this.endValueRect, this.duration);
                break;

            case DOTweenAnimationType.UIWidthHeight:
                this.tween = ((RectTransform)this.target).DOSizeDelta((!this.optionalBool0) ? this.endValueV2 : new Vector2(this.endValueFloat, this.endValueFloat), this.duration, false);
                break;
            }
            if (this.tween == null)
            {
                return;
            }
            if (this.isFrom)
            {
                ((Tweener)this.tween).From(this.isRelative);
            }
            else
            {
                this.tween.SetRelative(this.isRelative);
            }
            this.tween.SetTarget(base.gameObject).SetDelay(this.delay).SetLoops(this.loops, this.loopType).SetAutoKill(this.autoKill).OnKill(delegate
            {
                this.tween = null;
            });
            if (this.isSpeedBased)
            {
                this.tween.SetSpeedBased <Tween>();
            }
            if (this.easeType == Ease.INTERNAL_Custom)
            {
                this.tween.SetEase(this.easeCurve);
            }
            else
            {
                this.tween.SetEase(this.easeType);
            }
            if (!string.IsNullOrEmpty(this.id))
            {
                this.tween.SetId(this.id);
            }
            this.tween.SetUpdate(this.isIndependentUpdate);
            if (this.hasOnStart)
            {
                if (this.onStart != null)
                {
                    this.tween.OnStart(new TweenCallback(this.onStart.Invoke));
                }
            }
            else
            {
                this.onStart = null;
            }
            if (this.hasOnPlay)
            {
                if (this.onPlay != null)
                {
                    this.tween.OnPlay(new TweenCallback(this.onPlay.Invoke));
                }
            }
            else
            {
                this.onPlay = null;
            }
            if (this.hasOnUpdate)
            {
                if (this.onUpdate != null)
                {
                    this.tween.OnUpdate(new TweenCallback(this.onUpdate.Invoke));
                }
            }
            else
            {
                this.onUpdate = null;
            }
            if (this.hasOnStepComplete)
            {
                if (this.onStepComplete != null)
                {
                    this.tween.OnStepComplete(new TweenCallback(this.onStepComplete.Invoke));
                }
            }
            else
            {
                this.onStepComplete = null;
            }
            if (this.hasOnComplete)
            {
                if (this.onComplete != null)
                {
                    this.tween.OnComplete(new TweenCallback(this.onComplete.Invoke));
                }
            }
            else
            {
                this.onComplete = null;
            }
            if (this.hasOnRewind)
            {
                if (this.onRewind != null)
                {
                    this.tween.OnRewind(new TweenCallback(this.onRewind.Invoke));
                }
            }
            else
            {
                this.onRewind = null;
            }
            if (this.autoPlay)
            {
                this.tween.Play <Tween>();
            }
            else
            {
                this.tween.Pause <Tween>();
            }
            if (this.hasOnTweenCreated && this.onTweenCreated != null)
            {
                this.onTweenCreated.Invoke();
            }
        }