public IEnumerator LogicUI(int num) { boolInput = false; if (dataPanel.isCharge) { dataPanel.ChageDataOut(); yield return(new WaitForSeconds(3.1f)); } if (dataPanel.isCarport) { dataPanel.CarPortDataOut(); yield return(new WaitForSeconds(3.1f)); } if (dataPanel.isPhotovoltaicWall) { dataPanel.WallDataOut(); yield return(new WaitForSeconds(4.8f)); } if (dataPanel.isPhotovoltaticRoof) { dataPanel.PhotovoltaicDataOut(); yield return(new WaitForSeconds(3.1f)); } if (dataPanel.isAircondition) { dataPanel.AirconditionerDataOut(); yield return(new WaitForSeconds(7.4f)); } if (dataPanel.isStorage) { dataPanel.StorageDataOut(); yield return(new WaitForSeconds(5.5f)); } if (dataPanel.isPower) { dataPanel.PowerDataOut(); yield return(new WaitForSeconds(4.8f)); } if (num == 1) //主页 { Imageleft.DOPlayBackwards(); Imageright.DOPlayBackwards(); Logo.DOPlayBackwards(); //特效显示 effect.CharacterON(); isData = false; //隐藏介绍页,地点,漫游 IntroduceOut(); ShowPositionOut(); CruiseLandspaceStop(); } if (num == 2) //介绍面板 { Introduce.DOLocalMoveX(0, 0.7f); isIntroduce = true; Introduce.Find("Button").GetComponent <Button>().enabled = true; //特效出现 effect.CircleON(); //隐藏主页,地点,漫游 DataLogoOut(); ShowPositionOut(); CruiseLandspaceStop(); } if (num == 3) //数据地标 { //显示 showPosition = true; for (int i = 0; i < DataPosition.transform.childCount; i++) { DataPosition.transform.GetChild(i).GetComponent <SpriteRenderer>().enabled = true; DataPosition.transform.GetChild(i).GetComponent <BoxCollider>().enabled = true; } //隐藏介绍页,主页,漫游 IntroduceOut(); DataLogoOut(); CruiseLandspaceStop(); } if (num == 4) //巡游 { isCruise = true; mainCamera.GetComponent <Camera>().fieldOfView = 60f; mainCamera.GetComponent <Animation>().Play("xunyou"); //开启所有扫光 roofLight.enabled = true; wallLight.enabled = true; carPortLight.enabled = true; //开启充电桩动画 //ChargeAni.Play(); //ChargeAni.wrapMode = WrapMode.Loop; //开启空调特效 whiteSmoke.SetActive(true); light1.GetComponent <AircondictionEffect>().enabled = true; light2.GetComponent <AircondictionEffect>().enabled = true; light3.GetComponent <AircondictionEffect>().enabled = true; //关闭鼠标控制旋转 mainCamera.GetComponent <CameraRotate>().enabled = false; //隐藏主页,地点,介绍页 IntroduceOut(); ShowPositionOut(); DataLogoOut(); } boolInput = true; }
void CmdClickCarPortOut() { dataPanel.CarPortDataOut(); }