public static void Reset() { MonoSingleton <SRPG.Network> .Instance.mTicket = 1; MonoSingleton <SRPG.Network> .Instance.mRequests.Clear(); GsccBridge.Reset(); }
public static void RemoveAPI() { GsccBridge.Reset(); if (MonoSingleton <SRPG.Network> .Instance.mImmediateMode) { MonoSingleton <SRPG.Network> .Instance.mImmediateMode = false; } else if (MonoSingleton <SRPG.Network> .Instance.mRequests.Count <= 0) { DebugUtility.LogWarning("Instance.mRequestsGsc.Count <= 0"); } else { MonoSingleton <SRPG.Network> .Instance.mRequests.Remove(MonoSingleton <SRPG.Network> .Instance.mCurrentRequest); if (MonoSingleton <SRPG.Network> .Instance.mRequests.Count != 0) { return; } CriticalSection.Leave(CriticalSections.Network); } }