// The below functions are called by the VREyeRaycaster when the appropriate input is detected. // They in turn call the appropriate events should they have subscribers. public void Over() { m_IsOver = true; if (OnOver != null) { OnOver.Invoke(); } }
public static void Over() { if (!IsGameStart) { return; } IsGameStart = false; OnOver?.Invoke(); }