예제 #1
0
 public TweenScaleStrategy(Transform target, ITweenSharedState sharedSharedState, IValueModifier <Vector2> modHandler, ITweenPlayStyleStrategy style)
 {
     _target      = target;
     _mod         = modHandler;
     _style       = style;
     _sharedState = (TweenSharedState <Vector2>)sharedSharedState;
     _state       = TweenComponentState.None;
     _remote      = new TweenRemoteControl();
     _style.InitializeState();
     SubscribeToRemote();
 }
예제 #2
0
 public TweenAlphaStrategy(Graphic target, ITweenSharedState sharedState, IValueModifier <float> modHandler, ITweenPlayStyleStrategy style)
 {
     _target      = target;
     _mod         = modHandler;
     _style       = style;
     _sharedState = (TweenSharedState <float>)sharedState;
     _state       = TweenComponentState.None;
     _remote      = new TweenRemoteControl();
     _style.InitializeState();
     SubscribeToRemote();
 }