Space-Smash-Out/Assets/Scripts/Input/GameplayMetaInputEvents.cs
Jakob Feldmann 64162cb4a1 feat: whole project restructuring
This can be seen as the initial state of the project after the released demo.

The changes include:
- New ship models
- Singleton manager structure to keep project scaleable in the future
     - Managing players, their settings, character choices, statistics, match setups, controls etc. in a separate decoupled scene
- Main menu with transitions to the arena scene
- Beginnings of a custom audio solution
- Logging with Log4Net

It is really a complete overhaul of the projects structure and management.
2024-04-01 23:06:39 +02:00

34 lines
668 B
C#

using Managers;
using UnityEngine;
using UnityEngine.InputSystem;
using static InputActionMaps;
public class GameplayMetaInputEvents : MonoBehaviour, IMetaActions
{
private InputActionMaps inputActions;
void Awake()
{
inputActions = new InputActionMaps();
inputActions.Meta.SetCallbacks(this);
inputActions.Meta.Enable();
}
void EnableMetaInput()
{
inputActions.Meta.Enable();
}
void DisableMetaInput()
{
inputActions.Meta.Disable();
}
public void OnStart(InputAction.CallbackContext context)
{
MatchManager.G.StartPressed();
}
public void OnPause(InputAction.CallbackContext context)
{
throw new System.NotImplementedException();
}
}