Пример #1
0
 public Tweener(GameObject gameObject, TweenOptions tweenOptions,
                TweenCompleteDelegate TweenComplete = null, TweenCancelledDelegate TweenCancelled = null)
 {
     this.gameObject     = gameObject;
     this.tweenOptions   = tweenOptions;
     this.TweenComplete  = TweenComplete;
     this.TweenCancelled = TweenCancelled;
 }
Пример #2
0
 public ClingyPositionTweener(GameObject gameObject, TweenOptions tweenOptions,
                              MoveMethod moveMethod, GetDestinationPositionDelegate GetDestinationPosition,
                              TweenCompleteDelegate TweenComplete = null, TweenCancelledDelegate TweenCancelled = null)
     : base(gameObject, tweenOptions, TweenComplete, TweenCancelled)
 {
     this.moveMethod             = moveMethod;
     this.GetDestinationPosition = GetDestinationPosition;
 }
Пример #3
0
 public ClingyRotationTweener(GameObject gameObject, TweenOptions tweenOptions,
                              RotateMethod rotateMethod, GetDestinationRotationDelegate GetDestinationRotation,
                              TweenCompleteDelegate TweenComplete = null, TweenCancelledDelegate TweenCancelled = null)
     : base(gameObject, tweenOptions, TweenComplete, TweenCancelled)
 {
     this.rotateMethod           = rotateMethod;
     this.GetDestinationRotation = GetDestinationRotation;
 }
Пример #4
0
        public static Tweener TweenRotation(GameObject gameObject, TweenOptions tweenOptions,
                                            RotateMethod rotateMethod, GetDestinationRotationDelegate GetDestinationRotation,
                                            TweenCompleteDelegate TweenComplete = null, TweenCancelledDelegate TweenCancelled = null)
        {
            Tweener tweener = new ClingyRotationTweener(gameObject, tweenOptions, rotateMethod,
                                                        GetDestinationRotation, TweenComplete, TweenCancelled);

            tweener.Start();
            return(tweener);
        }