Beispiel #1
0
 public MintTweener(MintGetter <T> mintGetter, MintSetter <T> mintSetter, MintTweenDataBase <T> mintTweenInfo)
 {
     _getter      = mintGetter;
     _setter      = mintSetter;
     TweenInfo    = mintTweenInfo;
     this.IsPause = true;
     register();
 }
Beispiel #2
0
        public static MintTweener <Color> Create(MintGetter <Color> mintGetter, MintSetter <Color> mintSetter, Color endvalue, float duration)
        {
            var mintTweenerInfo = new MintTweenDataBase <Color>()
            {
                EaseType   = MintEaseMethod.Linear,
                Duration   = duration,
                StartValue = mintGetter.Invoke(),
                EndValue   = endvalue
            };
            var a = new MintTweener <Color>(mintGetter, mintSetter, mintTweenerInfo);

            return(a);
        }