| | |
| | | Image tmpMask;//自身的遮罩 |
| | | GameObject offectBackground;//适配需要的黑色背景 |
| | | ImageFire1 fire1; |
| | | ImageFire2 fire2;//两个用来合成的火元素 |
| | | ParticleSystem fire1PS1, fire1PS2;//出现的特效 |
| | | |
| | | ImageWater water1; |
| | | ImageFire2 fire2;//两个用来合成的火元素 |
| | | ParticleSystem fire2PS1, fire2PS2; |
| | | |
| | | ImageWater wood1; |
| | | |
| | | ParticleSystem woodPS1, woodPS2; |
| | | |
| | | ImageSkill skill; |
| | | |
| | |
| | | |
| | | fire1 = transform.Find("Image_Fire1").GetComponent<ImageFire1>(); |
| | | fire1.GetComponent<RectTransform>().anchoredPosition *= tmpScale; |
| | | fire1PS1 = fire1.transform.Find("Huo/Particle System").GetComponent<ParticleSystem>(); |
| | | fire1PS2 = fire1.transform.Find("Huo_02/Particle System").GetComponent<ParticleSystem>(); |
| | | |
| | | fire2 = transform.Find("Image_Fire2").GetComponent<ImageFire2>(); |
| | | fire2.GetComponent<RectTransform>().anchoredPosition *= tmpScale; |
| | | fire2PS1 = fire2.transform.Find("Huo/Particle System").GetComponent<ParticleSystem>(); |
| | | fire2PS2 = fire2.transform.Find("Huo_02/Particle System").GetComponent<ParticleSystem>(); |
| | | |
| | | fire1.gameObject.SetActive(false); |
| | | fire2.gameObject.SetActive(false); |
| | |
| | | |
| | | towerPos2.enabled = false; |
| | | |
| | | water1 = transform.Find("Image_Water").GetComponent<ImageWater>(); |
| | | water1.GetComponent<RectTransform>().anchoredPosition *= tmpScale; |
| | | water1.gameObject.SetActive(false); |
| | | wood1 = transform.Find("Image_Wood").GetComponent<ImageWater>(); |
| | | wood1.GetComponent<RectTransform>().anchoredPosition *= tmpScale; |
| | | woodPS1 = wood1.transform.Find("Mu/Particle System").GetComponent<ParticleSystem>(); |
| | | woodPS2 = wood1.transform.Find("Mu_02/Particle System").GetComponent<ParticleSystem>(); |
| | | |
| | | wood1.gameObject.SetActive(false); |
| | | |
| | | skill = transform.Find("Image_Skill").GetComponent<ImageSkill>(); |
| | | skill.GetComponent<RectTransform>().anchoredPosition *= tmpScale; |
| | |
| | | fire2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | towerPos.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | towerPos2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | water1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | wood1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | skill.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | |
| | | } |
| | |
| | | fire1.gameObject.SetActive(true); |
| | | fire1.transform.Find("Image_2").gameObject.SetActive(false); |
| | | fire1.enabled = false; |
| | | fire1PS1.Play(); |
| | | fire1PS2.Play(); |
| | | |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.PlayAppearEffect, fire1.transform.position); |
| | | } |
| | |
| | | public void Step1_2() |
| | | { |
| | | fire2.gameObject.SetActive(true); |
| | | fire2PS1.Play(); |
| | | fire2PS2.Play(); |
| | | fire2.enabled = false; |
| | | DestoryButtonListener(towerBuyBtn); |
| | | SetRimActive(false); |
| | |
| | | btnImg.raycastTarget = true; |
| | | InitRectGuidance(btnImg, 75, 80, tmpOffect); |
| | | SetRimPos(go); |
| | | ShowDragPath(water1.GetStartP, btnImg.rectTransform); |
| | | ShowDragPath(wood1.GetStartP, btnImg.rectTransform); |
| | | } |
| | | } |
| | | |
| | | public void Step9_1() |
| | | { |
| | | water1.gameObject.SetActive(true); |
| | | wood1.gameObject.SetActive(true); |
| | | woodPS1.Play(); |
| | | woodPS2.Play(); |
| | | towerPos2.enabled = true; |
| | | DestoryButtonListener(towerBuyBtn); |
| | | } |
| | |
| | | Image btnImg = skillBtn.GetComponent<Image>(); |
| | | InitRectGuidance(btnImg, 79, 79f, Vector2.one); |
| | | //SetRimPos(skillBtn.gameObject); |
| | | SetRimPos(skillBtn.gameObject, new Vector2(-15, 10)); |
| | | SetRimPos(skillBtn.gameObject, new Vector2(-15, -241)); |
| | | |
| | | text_Tip.text = str;//动态改变长度 |
| | | StartCoroutine(ShowRimTip(str)); |