private void InitFingerLifecycle _tutorialDisposables Clear HideFinger

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
private void InitFingerLifecycle() {
_tutorialDisposables.Clear();
HideFinger();
_fingerTransform.position = _fingerStartPoint.position;
Observable
.FromCoroutine(_ => FingerFade(1, _fingerFadeDuration))
.SelectMany(_ => FingerScale(_fingerPushedScale, _fingerScaleDownDuration))
.SelectMany(_ => FingerMovement(_fingerFinishPoint.position, _fingerMovementDuration))
.SelectMany(_ => FingerScale(1, _fingerScaleUpDuration))
.SelectMany(_ => FingerFade(0, _fingerFadeDuration))
.Do(_ => _fingerTransform.position = _fingerStartPoint.position)
.Delay(TimeSpan.FromSeconds(0.5f))
.Repeat()
.Subscribe()
.AddTo(_tutorialDisposables);
}