@@ -0,0 +1,8 @@ | |||
fileFormatVersion: 2 | |||
guid: ffb26310f3afc1f4a998905a72328a2d | |||
folderAsset: yes | |||
DefaultImporter: | |||
externalObjects: {} | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@@ -0,0 +1,32 @@ | |||
using System.Collections; | |||
using System.Collections.Generic; | |||
using UnityEngine; | |||
namespace MultiXR | |||
{ | |||
public enum MultiXRSDK | |||
{ | |||
VRTK, | |||
VRChat, | |||
Unknown | |||
} | |||
public class MultiXRMasterControl : MonoBehaviour | |||
{ | |||
public static MultiXRSDK currentXRSDK = MultiXRSDK.VRTK; | |||
// Use this for initialization | |||
void Start() | |||
{ | |||
} | |||
// Update is called once per frame | |||
void Update() | |||
{ | |||
} | |||
} | |||
} |
@@ -0,0 +1,11 @@ | |||
fileFormatVersion: 2 | |||
guid: f1c08f05ea962fc428f6ce7e953cb1c4 | |||
MonoImporter: | |||
externalObjects: {} | |||
serializedVersion: 2 | |||
defaultReferences: [] | |||
executionOrder: 0 | |||
icon: {instanceID: 0} | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |
@@ -0,0 +1,41 @@ | |||
using System.Collections; | |||
using System.Collections.Generic; | |||
using UnityEngine; | |||
using VRC; | |||
using VRCSDK2; | |||
using MultiXR; | |||
namespace MultiXR | |||
{ | |||
/// <summary> | |||
/// A spawnpoint for VRChat and VRTK. | |||
/// </summary> | |||
public class MultiXRSpawnPoint : MonoBehaviour | |||
{ | |||
// Use this for initialization, should be set to work in editor mode | |||
void Awake() | |||
{ | |||
switch (MultiXRMasterControl.currentXRSDK) | |||
{ | |||
case MultiXRSDK.VRTK: | |||
break; | |||
case MultiXRSDK.VRChat: | |||
VRC_SceneDescriptor vrcsd = GameObject.Find("VRCWorld").GetComponent<VRC_SceneDescriptor>(); | |||
// TODO: Implement VRCSD.spawns population | |||
//vrcsd.spawns. | |||
break; | |||
default: | |||
Debug.Log("MultiXRSDK unknown."); | |||
break; | |||
} | |||
} | |||
// Update is called once per frame | |||
void Update() | |||
{ | |||
} | |||
} | |||
} |
@@ -0,0 +1,11 @@ | |||
fileFormatVersion: 2 | |||
guid: 019f01580ed7a3346ac2d164ecbd612e | |||
MonoImporter: | |||
externalObjects: {} | |||
serializedVersion: 2 | |||
defaultReferences: [] | |||
executionOrder: 0 | |||
icon: {instanceID: 0} | |||
userData: | |||
assetBundleName: | |||
assetBundleVariant: |