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