non-vr lobby, version fix
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
namespace Photon.Voice.Unity.UtilityScripts.Editor
|
||||
{
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
[CustomEditor(typeof(ConnectAndJoin))]
|
||||
public class ConnectAndJoinEditor : Editor
|
||||
{
|
||||
private ConnectAndJoin connectAndJoin;
|
||||
private SerializedProperty randomRoomSp;
|
||||
private SerializedProperty roomNameSp;
|
||||
private SerializedProperty autoConnectSp;
|
||||
private SerializedProperty autoTransmitSp;
|
||||
private SerializedProperty publishUserIdSp;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
this.connectAndJoin = this.target as ConnectAndJoin;
|
||||
this.randomRoomSp = this.serializedObject.FindProperty("RandomRoom");
|
||||
this.roomNameSp = this.serializedObject.FindProperty("RoomName");
|
||||
this.autoConnectSp = this.serializedObject.FindProperty("autoConnect");
|
||||
this.autoTransmitSp = this.serializedObject.FindProperty("autoTransmit");
|
||||
this.publishUserIdSp = this.serializedObject.FindProperty("publishUserId");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(this.autoConnectSp);
|
||||
EditorGUILayout.PropertyField(this.autoTransmitSp);
|
||||
EditorGUILayout.PropertyField(this.randomRoomSp);
|
||||
EditorGUILayout.PropertyField(this.publishUserIdSp);
|
||||
if (!this.randomRoomSp.boolValue)
|
||||
{
|
||||
EditorGUILayout.PropertyField(this.roomNameSp);
|
||||
}
|
||||
if (Application.isPlaying && !this.connectAndJoin.IsConnected)
|
||||
{
|
||||
if (GUILayout.Button("Connect"))
|
||||
{
|
||||
this.connectAndJoin.ConnectNow();
|
||||
}
|
||||
}
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
this.serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 814145524f648a04fa42d1ac5cbfb885
|
||||
timeCreated: 1537888035
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "PhotonVoice.Utilities.Editor",
|
||||
"references": [
|
||||
"PhotonRealtime",
|
||||
"PhotonVoice"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4110ddd96589404bb35c918cc2fe96b
|
||||
timeCreated: 1538045250
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user