/// <summary> /// Check for key press and fire an Application reset event /// </summary> protected virtual void Update() { if (Input.GetKeyDown(KeyCode.R)) { OnCoreReset?.Invoke(); } // Exit application on Escape key press. if (Input.GetKeyDown(KeyCode.Escape)) { DebugLogger.Log("BACK"); OnBackButtonPressed?.Invoke(); } }
public static void InvokeOnBackButtonPressed() { OnBackButtonPressed?.Invoke(); }