Esempio n. 1
0
        /// <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();
            }
        }
Esempio n. 2
0
 public static void InvokeOnBackButtonPressed()
 {
     OnBackButtonPressed?.Invoke();
 }