Exemple #1
0
 public void Reset()
 {
     Clear();
     if (NextArrowManager != null)
     {
         NextArrowManager.Reset();
     }
 }
Exemple #2
0
    void Start()
    {
        _inputManager.IsUpdate.Skip(1).Where(x => x).Subscribe(_ =>
        {
            switch (_inputManager.LastInput)
            {
            case InputManager.InputType.Left:
                _arrowManager.Generate(Arrow.Type.Left);
                break;

            case InputManager.InputType.Right:
                _arrowManager.Generate(Arrow.Type.Right);
                break;

            case InputManager.InputType.None:
                _arrowManager.Reset();
                break;
            }
        }).AddTo(this);
    }