Пример #1
0
    void PlayerInputUpdate()
    {
        Assert.That(_state == GameStates.Playing);

        if (Input.GetMouseButtonDown(0))
        {
            _runner.StartAction();
        }

        if (Input.GetMouseButton(0))
        {
            _runner.HoldAction();
        }

        if (Input.GetMouseButtonUp(0))
        {
            _runner.StopAction();
        }
    }