public void OnDestroy() { OnlineManager.OnOpponentMove -= OnlineManagerOnOnOpponentMove; OnlineManager.OnEndGame -= OnlineManagerOnEndGame; OnlineManager.OnSessionClosed -= OnlineManagerOnSessionClosed; OnlineManager.CloseConnection(); }
public void OnDestroy() { OnlineManager.OnOpponentMove -= OnlineManagerOnOnOpponentMove; OnlineManager.OnEndGame -= OnlineManagerOnEndGame; OnlineManager.OnSessionClosed -= OnlineManagerOnSessionClosed; OnlineManager.CloseConnection(); }