| 1234567891011121314151617181920212223242526272829303132333435 |
- using TapSDK.Core.Internal.Log;
- using UnityEngine;
- namespace TapSDK.Core.Standalone.Internal
- {
-
- internal class TapClientBridgePoll : MonoBehaviour
- {
- static readonly string TAP_CLIENT_POLL_NAME = "TapClientBridgePoll";
- static TapClientBridgePoll current;
-
- internal static void StartUp()
- {
- TapLog.Log("TapClientBridgePoll StartUp " );
- if (current == null)
- {
- GameObject pollGo = new GameObject(TAP_CLIENT_POLL_NAME);
- DontDestroyOnLoad(pollGo);
- current = pollGo.AddComponent<TapClientBridgePoll>();
- }
- }
-
-
- private void Update()
- {
- #if UNITY_STANDALONE_WIN
- TapClientBridge.TapSDK_RunCallbacks();
- #endif
- }
- }
- }
|