| | |
| | | ImageTowerPos towerPos3;//塔位标识 |
| | | |
| | | Image tmpMask;//自身的阻挡射线Panel |
| | | ParticleSystem finishPS; |
| | | //ParticleSystem finishPS; |
| | | Button finishBtn; |
| | | Image finishImg; |
| | | 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>(); |
| | | finishBtn = transform.Find("FinishImageBtn").GetComponent<Button>(); |
| | | finishImg = finishBtn.transform.Find("FinishImage").GetComponent<Image>(); |
| | | finishImg.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f); |
| | | finishBtn.onClick.AddListener(OnClickFinish); |
| | | finishBtn.gameObject.SetActive(false); |
| | | //finishPS = transform.Find("Effect_UI_YinDaoJieShu/Particle System (3)").GetComponent<ParticleSystem>(); |
| | | towerBuyBtn.gameObject.SetActive(false); |
| | | } |
| | | |
| | |
| | | CloseGuidance(); |
| | | |
| | | SetGuideUI(true); |
| | | //StartShowWord(str, ac); |
| | | callBack = ac; |
| | | StartShowWord(str, ShowFinishPanel); |
| | | // charForeach.StartFinalShowWord(str, ac, () => |
| | | // { |
| | | // finishPS.Play(); |
| | | // }); |
| | | |
| | | charForeach.StartFinalShowWord(str, ac, () => |
| | | { |
| | | finishPS.Play(); |
| | | }); |
| | | } |
| | | |
| | | private void ShowFinishPanel() |
| | | { |
| | | SetGuideUI(false); |
| | | //显示引导结束面板,再次点击按钮关闭 |
| | | finishBtn.gameObject.SetActive(true); |
| | | finishImg.transform.DOScale(Vector3.one, 0.5f); |
| | | } |
| | | |
| | | private void OnClickFinish() |
| | | { |
| | | callBack?.Invoke(); |
| | | } |
| | | |
| | | |