Example #1
0
 public static async Task DoZTransition(this Transform transform, CancellationToken cancelToken)
 {
     var moveOffset = 20f;
     await AnimationHelper.AsyncAnimation(0.8f, cancelToken, t => { transform.localPosition = new Vector3(0, 0, moveOffset * (1f - t)); });
 }
        public async Task AnimateOut()
        {
            CancelCurrent();

            await AnimationHelper.AsyncAnimation(_speedDivision, _cancellationTokenSource.Token, _outAnimation);
        }