Пример #1
0
    void SubscribeInputControls()
    {
        #region Player Controls
        controls.Player.Jump.started += context => playerBody.Jump();

        controls.Player.SwapItem.started   += context => playerBody.SwapItem();
        controls.Player.UseItem.started    += context => playerBody.UseItem();
        controls.Player.RemoveItem.started += context => playerBody.RemoveItem();

        controls.Player.Water.started += context => playerBody.Water();

        controls.Player.Pause.started += context => playerUIManager.Pause();

        //InputUser.onChange += OnInputUserDeviceChange;
        #endregion

        #region UI Controls

        #endregion
    }