//private bool startPoint = false; // Use this for initialization void Start() { UDP = GameObject.Find("UDP").GetComponent <BCI_UDP>(); main = GameObject.Find("MainControl").GetComponent <Main>(); }
void Init() { isAppStart = true; org = "TSB"; UDP = udpObj.GetComponent <BCI_UDP>(); //Set_OrganizationObject(); //Set_DeviceObject(); //Set_CommonObject(); ApplicationMode = AppMode.Main; sendCnt = 1; //oggTexture = GameObject.Find("Screen").transform.gameObject.GetComponent<OggVideoStreamingTexture>(); isStopSignal = false; runningCoroutine = null; notice = GameObject.Find("Mian Screen").transform.Find("Main Canvas").transform.Find("PageManager").transform.Find("Page_Common").transform.Find("Notice_txt").GetComponent <Text>(); //strRayName = ""; BCI_Page = DeviceDepth.Page1; Status_Refrigerator.InitArr(3); Status_AirCleaner.InitArr(3); Status_AirConditioner.InitArr(3); Status_AirDresser.InitArr(3); Status_Blind.InitArr(3); Status_Bulb[0].InitArr(3); Status_Bulb[1].InitArr(3); Status_DoorLock.InitArr(3); Status_GasValve.InitArr(3); Status_RVC.InitArr(3); Status_Inbody.InitArr(5); Status_Fit.InitArr(7); Status_Scale.InitArr(14); // debug Status_DoorLock.SetData("close", "55"); Status_GasValve.SetData("close"); Status_Blind.SetData("close"); Status_TV.SetData("off"); Status_CCTV[0].SetData(false); Status_CCTV[1].SetData(false); //Status_Refrigerator.SetData("on", "off", "allOpen", "1", "-19", "0", "-20", "freezer"); //Status_RVC.SetData("cleaning", "turbo"); //Status_Bulb[0].SetData("on", "255", "255", "0", "35"); //Status_Bulb[1].SetData("on", "0", "0", "255", "100"); //Status_AirCleaner.SetData("on", "auto", "1", "24", "35"); //Status_AirConditioner.SetData("on", "cool", "turbo", "27", "21", "10"); //GateWay#Inbody#69#72.4#30.5#18.1#23.6#25.0#0.87#7#1542#2203#67.4#-5.0#-8.0#3.0#30.0#M#175 Status_Inbody.SetData("0", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0", "0", "0", "0", "0.0", "0.0", "0.0", "0.0", "0.0", "M", "0", "0.0", "0", "0.0"); Status_Fit.SetData("0", "0", "0"); Status_Scale.SetData("0.0", "00.00 00:00", "0.0", "00.00 00:00"); //Status_AirDresser.SetData("standard", "dustFree", "ready", "12", "off", "on"); isBCI = true; isSSVEP = false; //test = GameObject.Find("Video").gameObject; //aa = test.GetComponent<VideoPlayer>(); //aa.Prepare(); //bb = test.GetComponent<RawImage>(); //bb.texture = aa.texture; //aa.Play(); //Debug.Log("end"); }