projectEli/Assets/NeoFPS/Core/Input/InputHandlers/InputGame.cs

25 lines
668 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
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();
}
}
}