public static pcvr GetInstance() { if (_Instance == null) { _Instance = new pcvr(); XKOpenCGCamera.GetInstance(); MyCOMDevice.GetInstance(); } return(_Instance); }
static public int chenNum = 0; //0-ch 5-en static public pcvr GetInstance() { if (Instance == null) { GameObject obj = new GameObject("_PCVR"); DontDestroyOnLoad(obj); Instance = obj.AddComponent <pcvr>(); Instance.InitPcvr(); } return(Instance); }
static public pcvr GetInstance() { if (Instance == null) { GameObject obj = new GameObject("_PCVR"); DontDestroyOnLoad(obj); Instance = obj.AddComponent <pcvr>(); Instance.mPcvrTXManage = obj.AddComponent <pcvrTXManage>(); if (bIsHardWare) { MyCOMDevice.GetInstance(); } } return(Instance); }
static public pcvr GetInstance() { if (Instance == null) { GameObject obj = new GameObject("_PCVR"); DontDestroyOnLoad(obj); Instance = obj.AddComponent <pcvr>(); ScreenLog.init(); if (bIsHardWare) { MyCOMDevice.GetInstance(); } if (HardWareTest.IsTestHardWare) { TestComPort.GetInstance(); } //ScreenLog.Log("open hid***********************"); } return(Instance); }