diff --git a/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs b/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs new file mode 100644 index 00000000..5470a082 --- /dev/null +++ b/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs @@ -0,0 +1,31 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +// 뒤끝 SDK namespace 추가 +using BackEnd; + +namespace TON +{ + /// + /// 랭킹 데이터 관리를 위한 뒤끝 서버 매니저 + /// + public class BackendManager : MonoBehaviour + { + void Start() + { + var bro = Backend.Initialize(); // 뒤끝 초기화 + + // 뒤끝 초기화에 대한 응답값 + if (bro.IsSuccess()) + { + Debug.Log("초기화 성공 : " + bro); // 성공일 경우 statusCode 204 Success + } + else + { + Debug.LogError("초기화 실패 : " + bro); // 실패일 경우 statusCode 400대 에러 발생 + } + } + + } +} diff --git a/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs.meta b/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs.meta new file mode 100644 index 00000000..07ea9085 --- /dev/null +++ b/Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 997aacd350268d041bba7f34cf767394 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend.meta b/Gameton-06/Assets/TheBackend.meta new file mode 100644 index 00000000..2dbff0f3 --- /dev/null +++ b/Gameton-06/Assets/TheBackend.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a7a10178843a13a499e865edc4480d42 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins.meta b/Gameton-06/Assets/TheBackend/Plugins.meta new file mode 100644 index 00000000..e46e4cf8 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5cdcec3ee32c5045841d598540aae91 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Android.meta b/Gameton-06/Assets/TheBackend/Plugins/Android.meta new file mode 100644 index 00000000..a172f426 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bde01bc416932a2478cd660e19a744b9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar b/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar new file mode 100644 index 00000000..569460d7 Binary files /dev/null and b/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar differ diff --git a/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar.meta b/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar.meta new file mode 100644 index 00000000..88dfce20 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Android/Backend.aar.meta @@ -0,0 +1,32 @@ +fileFormatVersion: 2 +guid: 53bbc4cf3e51b014bb5f4cf116cbca91 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Android: Android + second: + enabled: 1 + settings: {} + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Backend.dll b/Gameton-06/Assets/TheBackend/Plugins/Backend.dll new file mode 100644 index 00000000..0ceb4a9f --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Backend.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7952e962f0cddd43a337958195105c3e29edda93c5c3f102714c48795b508229 +size 1409024 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Backend.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Backend.dll.meta new file mode 100644 index 00000000..db4af80a --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Backend.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 5236b6994bfbd7e4799c095f2e85a2c2 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Editor.meta b/Gameton-06/Assets/TheBackend/Plugins/Editor.meta new file mode 100644 index 00000000..6cdd1015 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e72a29c073fd224b92d1162440cdeb1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll new file mode 100644 index 00000000..1762e97f --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d135301afafd282d58834874f18086aec40e2980589469fca15b04d8700599d +size 7680 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll.meta new file mode 100644 index 00000000..23622521 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendMultiSettingEditor.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 34bdab53604471144853f229a2a8a4a4 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll new file mode 100644 index 00000000..051a7e5c --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81d2db2059e21f45d30b187671144af5f5f96e525dab5327d53cfbb64be212cc +size 6656 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll.meta new file mode 100644 index 00000000..99ebf24c --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Editor/TheBackendSettingEditor.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 8eb7725abfacf504d9b015c58c95420a +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll b/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll new file mode 100644 index 00000000..1d2a7dac --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31d231a3c00bf225b3b8ac80eb42aae80c729762b679f9059dadd066e3f80d67 +size 61440 diff --git a/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll.meta new file mode 100644 index 00000000..d72bea24 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/LitJSON.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 881a7d2468927f944b4a556d3bcf64ad +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings.meta b/Gameton-06/Assets/TheBackend/Plugins/Settings.meta new file mode 100644 index 00000000..14648c26 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 049d8146771287b4492c2d0ecf3e132e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll new file mode 100644 index 00000000..19f511fb --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30ad521ce985829c3771f7649a4f3198b5fc2d52e2545f4809fdb453fb64a4b2 +size 8704 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll.meta new file mode 100644 index 00000000..f164fdcb --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendHashKeySettings.dll.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 4ced5682f94d6c94989bd8d365f15037 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + '': Any + second: + enabled: 0 + settings: + Exclude Android: 1 + Exclude Editor: 0 + Exclude Linux: 1 + Exclude Linux64: 1 + Exclude LinuxUniversal: 1 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + Exclude WindowsStoreApps: 1 + Exclude iOS: 1 + - first: + Android: Android + second: + enabled: 0 + settings: + CPU: ARMv7 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 0 + settings: + CPU: x86 + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: x86_64 + - first: + Standalone: LinuxUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + DontProcess: false + PlaceholderPath: + SDK: AnySDK + ScriptingBackend: AnyScriptingBackend + - first: + iPhone: iOS + second: + enabled: 0 + settings: + AddToEmbeddedBinaries: false + CompileFlags: + FrameworkDependencies: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll new file mode 100644 index 00000000..e9e6569f --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2cb2351d9cf631ebf1262873644fc9f223f24e235f0bdd4c760003328ef9ab3 +size 5632 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll.meta new file mode 100644 index 00000000..05bc6249 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendMultiSettings.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: cd59f86991e115e4fb5b2ee874c89e25 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll new file mode 100644 index 00000000..25a1e04e --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:deb6382ed96770a4aa2a1e73a640a697f7c92b5b83a97ec9bce7afb9cffecf72 +size 4608 diff --git a/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll.meta new file mode 100644 index 00000000..a5a4f078 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/Settings/TheBackendSettings.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: f624596d5fe1bd5459a5da424a8abc1b +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll b/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll new file mode 100644 index 00000000..e15693e9 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e2532f00aa18344557066d3c2a9a95dbb0e81093e4894154704de50807970d5 +size 90624 diff --git a/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll.meta b/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll.meta new file mode 100644 index 00000000..18503505 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Plugins/WebSocket4Net.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 56470701fb6855e4e910733ec1bb6e56 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Resources.meta b/Gameton-06/Assets/TheBackend/Resources.meta new file mode 100644 index 00000000..4e7b2340 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da4c3a5327f1b3a4b87dbcb6179db2a7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset b/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset new file mode 100644 index 00000000..ecab6892 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61aa7c2f3eea8c3944a42a38f7ca204a447edc1e686b1fbd30e358f09ef53f1c +size 822 diff --git a/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset.meta b/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset.meta new file mode 100644 index 00000000..d02350ea --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Resources/TheBackendSettings.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f2ddab498f026c74f9f2e174428402f0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Toolkit.meta b/Gameton-06/Assets/TheBackend/Toolkit.meta new file mode 100644 index 00000000..933539ee --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Toolkit.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6fd5effa45be36449bcb185854f2e5d5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs b/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs new file mode 100644 index 00000000..e6106a61 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs @@ -0,0 +1,67 @@ +using System; +using UnityEngine; +using BackEnd; + +// SendQueue를 손쉽게 사용하기 위한 SendQueueMgr 클래스 입니다. +// 해당 스크립트를 유니티 객체에 스크롤 해서 적용해주세요. +// SendQueue에 대한 자세한 설명은 아래 개발자 문서를 참고해주세요. +// https://developer.thebackend.io/unity3d/guide/Async/SendQueue/ + +public class SendQueueMgr : MonoBehaviour +{ + void Awake() + { + // 씬이 바뀌어도 계속 SendQueue를 사용하기 위해서 + // 아래 DontDestroyOnLoad 함수를 통해 SendQueue 객체를 파괴되지 않는 오브젝트로 만듭니다. + // 자세한 설명은 아래 유니티 개발자문서를 참고해주세요. + // https://docs.unity3d.com/kr/current/ScriptReference/Object.DontDestroyOnLoad.html + DontDestroyOnLoad(this); + + // 만약 SendQueue가 초기화 되지 않았다면 초기화 수행 + if (SendQueue.IsInitialize == false) + { + // SendQueue는 시작과 동시에 초기화가 수행됩니다. + // 디버그 로그 활성화, 예외 이벤트 핸들러 등록 + SendQueue.StartSendQueue(true, ExceptionEvent); + } + } + + void Update() + { + // SendQueue가 초기화 되었을 때만 Poll 함수를 호출 + if (SendQueue.IsInitialize) + { + // SendQueue를 정상적으로 사용하기 위해서는 + // 아래 Poll 함수가 반드시 정기적으로 호출되어야 합니다. + BackEnd.SendQueue.Poll(); + } + } + + // SendQueue 내부에서 예외가 발생했을 경우 + // 아래 이벤트 핸들러를 통해 예외 이벤트가 전달됩니다. + void ExceptionEvent(Exception e) + { + Debug.Log(e.ToString()); + } + + + void OnApplicationPause(bool isPause) + { + if (isPause == false) + { + // 어플리케이션이 재실행 되었을 때 SendQueue를 재실행 시킴 + SendQueue.ResumeSendQueue(); + } + else + { + // 어플리케이션이 정지되었을 때 SendQueue를 일시 정지 시킴 + SendQueue.PauseSendQueue(); + } + } + + void OnApplicationQuit() + { + // 어플리케이션이 종료되었을 때 SendQueue를 정지 시킴 + BackEnd.SendQueue.StopSendQueue(); + } +} diff --git a/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs.meta b/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs.meta new file mode 100644 index 00000000..a87e2837 --- /dev/null +++ b/Gameton-06/Assets/TheBackend/Toolkit/SendQueueMgr.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7140c56c72cb4b44ba191242cb642c85 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: