public Tweener(GameObject gameObject, TweenOptions tweenOptions, TweenCompleteDelegate TweenComplete = null, TweenCancelledDelegate TweenCancelled = null) { this.gameObject = gameObject; this.tweenOptions = tweenOptions; this.TweenComplete = TweenComplete; this.TweenCancelled = TweenCancelled; }
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; }
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; }
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); }