| | |
| | | ImageTowerPos towerPos3;//塔位标识 |
| | | |
| | | Image tmpMask;//自身的阻挡射线Panel |
| | | ParticleSystem finishPS; |
| | | void Awake() |
| | | { |
| | | tmpMask = transform.GetComponent<Image>(); |
| | |
| | | |
| | | skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillBtn").GetComponent<Button>(); |
| | | skillBtn.interactable = false; |
| | | |
| | | finishPS = transform.Find("Effect_UI_YinDaoJieShu/Particle System (3)").GetComponent<ParticleSystem>(); |
| | | } |
| | | |
| | | |
| | |
| | | //fire2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | towerPos.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | towerPos2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | towerPos3.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | wood1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | wood2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | fire.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | water.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | //fire.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | |
| | | //skill.GetComponent<RectTransform>().anchoredPosition -= tmpOffect; |
| | | |
| | | } |
| | |
| | | /// </summary> |
| | | public void GuideEnergyUp() |
| | | { |
| | | GameObject.Find("UICamera/MainUI/BloodUI").SetActive(false); |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideEnergyUp, 100); |
| | | |
| | | tmpMask.enabled = false; |
| | |
| | | |
| | | public void SkillRelease(string[] str, Action ac) |
| | | { |
| | | GameObject.Find("UICamera/MainUI/BloodUI").SetActive(true); |
| | | |
| | | RemoveButtonListener(skillBtn.gameObject); |
| | | SetRimActive(false); |
| | | CloseGuidance(); |
| | | |
| | | SetGuideUI(true); |
| | | StartShowWord(str, ac); |
| | | //StartShowWord(str, ac); |
| | | |
| | | charForeach.StartFinalShowWord(str, ac, () => |
| | | { |
| | | finishPS.Play(); |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | public void FinishGuide() |
| | | { |
| | | towerBuyBtn.gameObject.SetActive(true); |