/* * author: mark joshwel * date: 27/5/2024 * description: script for handling player interactivity */ using UnityEngine; /// /// class for handling player interactivity /// public class Player : MonoBehaviour { /// /// game manager instance /// private GameManager _game; /// /// initalisation function /// private void Start() { _game = GameManager.Instance; } /// /// function called by the input system when escape is paused /// public void OnPause() { Debug.Log("escape pressed"); _game.SetDisplayState(_game.Paused ? GameManager.DisplayState.Game : GameManager.DisplayState.ScreenPauseMenu); } }