12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- using UnityEngine;
- using Ximmerse.XR;
- public class OpCenterTest : MonoBehaviour
- {
-
- private void Awake()
- {
- XDevicePlugin.OpcInit("ABC");
- Debug.Log("OpServiceVersionCode:"+ XDevicePlugin.GetOpServiceVersionCode());
-
- }
- private void Start()
- {
- XDevicePlugin.OnMissionBegin();
- }
- private void OnApplicationQuit()
- {
- XDevicePlugin.OpcExit();
- }
- private void Update()
- {
- Debug.Log("Server ip:" + XDevicePlugin.GetBoundGameServerAddress());
- }
- }
|