예제 #1
0
    private void Start()
    {
        // Hp up!
        _targetPoint.AsObservable()
        .Where(target => !Mathf.Approximately(target, _currentPoint))
        .Subscribe(targetPoint => {
            _time         = Time.deltaTime;
            _currentPoint = Mathf.SmoothStep(_startPoint, targetPoint, 0.4f);
        });

        // cunsom Hp!
    }