// Use this for initialization void Start() { dataPanel = GameObject.Find("Canvas/DataChart").GetComponent <DataPanel>(); Imageleft = transform.Find("Imageleft"); Imageright = transform.Find("Imageright"); Logo = transform.Find("Logo"); Introduce = transform.Find("Introduce"); ChargeAni = GameObject.Find("MainScence/chongdianzhuang (3)").GetComponent <Animation>(); login = transform.Find("LogIn").gameObject; showConnent = GameObject.Find("NetworkManager").GetComponent <NetworkHud>(); effect = GetComponent <IntroduceEffect>(); Tweener tLeft = Imageleft.DOLocalMoveX(-1130f, 0.5f); Tweener tRight = Imageright.DOLocalMoveX(1130f, 0.5f); Tweener logo = Logo.DOLocalMoveY(600f, 0.5f); logo.SetAutoKill(false); tLeft.SetAutoKill(false); tRight.SetAutoKill(false); tLeft.Pause(); tRight.Pause(); logo.Pause(); }
//private void OnEnable() //{ // Debug.Log("SpeakerisCharge" + isCharge); // Debug.Log("SpeakerisPower" + isPower); // Debug.Log("SpeakerisCarPort" + isCarPort); // Debug.Log("SpeakerisAircondition" + isAircondition); // Debug.Log("SpeakerisPhotovoltaticRoof" + isPhotovoltaticRoof); // Debug.Log("SpeakerisPhotovoltaticWall" + isPhotovoltaticWall); // Debug.Log("SpeakerisStorage" + isStorage); // Debug.Log("SpeakersyncCamera" + syncCamera); //} // Use this for initialization void Start() { loading1 = GameObject.Find("Canvas/loading1").GetComponent <Text>(); loading2 = GameObject.Find("Canvas/loading2").GetComponent <Text>(); loading3 = GameObject.Find("Canvas/loading3").GetComponent <Text>(); login = GameObject.Find("Canvas/ButtonManager/LogIn"); showConnent = GameObject.Find("NetworkManager").GetComponent <NetworkHud>(); //detialPosition = Camera.main.GetComponent<DetialPosition>(); //dataShow = GameObject.Find("Canvas").GetComponent<DataShow>(); //lookAtMe = new LookAtMe()/*GameObject.Find("DataTag/AirConditioner").GetComponent<LookAtMe>()*/; //dataPanel = new DataPanel()/*GameObject.Find("Canvas/DataChart").GetComponent<DataPanel>()*/; iPadButtonList = GameObject.Find("Canvas/ButtonManager").GetComponent <iPadButtonManager>(); zoomINButton = GameObject.Find("Canvas/ButtonManager/ZoonInOff").GetComponent <Button>(); zoomINButton.onClick.AddListener(OnClickZoomIN); //监听放大按钮 zoomOutButton = GameObject.Find("Canvas/ButtonManager/ZoonOutOff").GetComponent <Button>(); zoomOutButton.onClick.AddListener(OnClickZoomOut); //监听缩小按钮 charge = GameObject.Find("Canvas/ButtonManager/ChargeOff").GetComponent <Button>(); charge.onClick.AddListener(OnClickCharge); //监听充电桩按钮 power = GameObject.Find("Canvas/ButtonManager/PowerOff").GetComponent <Button>(); power.onClick.AddListener(OnClickPower); //监配电房按钮 carPort = GameObject.Find("Canvas/ButtonManager/CarPortOff").GetComponent <Button>(); carPort.onClick.AddListener(OnClickCarPort); //监听车棚按钮 photovoltaicWall = GameObject.Find("Canvas/ButtonManager/PhotovoltaicWallOff").GetComponent <Button>(); photovoltaicWall.onClick.AddListener(OnClickPhotovoltaicWall); //监听光伏墙按钮 photovoltaicRoof = GameObject.Find("Canvas/ButtonManager/PhotovoltaicRoofOff").GetComponent <Button>(); photovoltaicRoof.onClick.AddListener(OnClickPhotovoltaicRoof); //监听光伏屋顶按钮 aircondition = GameObject.Find("Canvas/ButtonManager/AirconditionOff").GetComponent <Button>(); aircondition.onClick.AddListener(OnClickAircondition); //监听空调按钮 storage = GameObject.Find("Canvas/ButtonManager/StorageOff").GetComponent <Button>(); storage.onClick.AddListener(OnClickStorage); //监听储能设备按钮 autoPlay = GameObject.Find("Canvas/ButtonManager/AutoPlayOff").GetComponent <Button>(); autoPlay.onClick.AddListener(OnClickAutoPlay); //监听巡游动画按钮 set = GameObject.Find("Canvas/ButtonManager/SetOff").GetComponent <Button>(); set.onClick.AddListener(OnClickSet); //监听设置链接按钮 introduce = GameObject.Find("Canvas/ButtonManager/IntroduceOff").GetComponent <Button>(); introduce.onClick.AddListener(OnClickIntroduce); //监听设置链接按钮 position = GameObject.Find("Canvas/ButtonManager/PositionOff").GetComponent <Button>(); position.onClick.AddListener(OnClickPosition); //监听设置链接按钮 home = GameObject.Find("Canvas/ButtonManager/HomeOff").GetComponent <Button>(); home.onClick.AddListener(OnClickHome); //监听设置链接按钮 //BGM = GameObject.Find("Canvas/ButtonManager/BGMOff").GetComponent<Button>(); //BGM.onClick.AddListener(OnClickBGM); }