projectEli/Assets/NeoFPS/Core/Input/InputHandlers/InputGame.cs
2022-11-06 20:28:33 -05:00

25 lines
668 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NeoFPS.Constants;
using NeoSaveGames;
using NeoFPS.Samples;
namespace NeoFPS
{
[HelpURL("https://docs.neofps.com/manual/inputref-mb-inputgame.html")]
public class InputGame : FpsInput
{
protected override void UpdateInput()
{
if (GetButtonDown(FpsInputButton.QuickSave))
SaveGameManager.QuickSave();
if (GetButtonDown(FpsInputButton.QuickLoad))
SaveGameManager.QuickLoad();
if (GetButtonDown(FpsInputButton.QuickMenu))
QuickOptionsPopup.ToggleVisible();
}
}
}