void Start() { mascaret = VRApplication.Instance; mascaret.window = new UnityWindow3D(); mascaret.VRComponentFactory = new UnityVirtualRealityComponentFactory(); mascaret.window.addPeripheric(new UnityKeyboard()); mascaret.window.addPeripheric(new UnityMouse()); mascaret.parse(applicationFile, Application.dataPath + "/StreamingAssets/"); }
void Awake() { string m_ApplicationFile = "MAS/MAS_" + agent; //Check if file exists TextAsset file = Resources.Load(m_ApplicationFile) as TextAsset; if (file != null) { PrintSingleton.Instance.log("MAS file name valid!"); m_Mascaret = VRApplication.Instance; m_Mascaret.reset(); m_Mascaret.window = new UnityWindow3D(); m_Mascaret.VRComponentFactory = new UnityVirtualRealityComponentFactory(); m_Mascaret.window.addPeripheric(new UnityKeyboard()); m_Mascaret.window.addPeripheric(new UnityMouse()); m_Mascaret.parse(m_ApplicationFile, "", loadAll); } else { PrintSingleton.Instance.log("MAS file not found"); } }