1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-12-18 11:55:52 +01:00
MaiDXR/Assets/Scripts/Networks/DebugButton.cs
xpeng b93656d29a bug fix
mp head cube color bug
touch position fix
network package issue fix
2022-08-29 02:53:00 +02:00

16 lines
561 B
C#

using UnityEngine;
using Unity.Netcode;
public class DebugButton : MonoBehaviour
{
private void OnGUI() {
GUILayout.BeginArea(new Rect(10, 10, 100, 300));
//if (!NetworkManager.Singleton.IsClient && !NetworkManager.Singleton.IsServer) {
if (GUILayout.Button("Host")) GetComponent<StartManager>().StartHost();
if (GUILayout.Button("Client")) GetComponent<StartManager>().StartClient();
if (GUILayout.Button("Stop")) GetComponent<StartManager>().StopAll();
//}
GUILayout.EndArea();
}
}