protected virtual void OnReset() { if (OnCachedReset != null) { OnCachedReset.Invoke(m_Infos, m_CachedObjects); } }
public void OnResetButtonClick() { reset.Invoke(); gameOverCanvas.SetActive(false); IsGameOver = false; isStarted = false; }
public void ResetGame() { if (Reset != null) { Reset.Invoke(); } }
/// <summary> /// Подпрограмма сброса платы /// </summary> /// <returns>Код ошибки</returns> public int Reset() { // Synchronously wait to enter the Semaphore. SemaphoreSlim.Wait(); ushort id; var error = _reset?.Invoke(ref _device, out id) ?? int.MaxValue; // Release the Semaphore. SemaphoreSlim.Release(); return(error); }