| | |
| | | RectTransform dragHandImg;//拖动标识手指 |
| | | |
| | | Button skillBtn;// |
| | | Vector2 skillBtnPos = new Vector2(459, 280); |
| | | Vector2 skillBtnPos = new Vector2(455, -150); |
| | | |
| | | private Image warningImg;//大波敌人来袭提示 |
| | | /// <summary> |
| | |
| | | |
| | | backgroundImg = transform.Find("Button").GetComponent<Image>(); |
| | | |
| | | skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBtn").GetComponent<Button>(); |
| | | skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillBtn").GetComponent<Button>(); |
| | | skillBtn.interactable = false; |
| | | towerBuyBtn = GameObject.Find("UICamera/BottomCanvas/Panel/TowerBuyBtn"); |
| | | RectTransform tmpTs = towerBuyBtn.GetComponent<RectTransform>(); |
| | |
| | | { |
| | | image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect; |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect; |
| | | } |
| | |
| | | { |
| | | image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect; |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect; |
| | | } |
| | |
| | | { |
| | | maskObj.InitForCamera(target, towerBuyBtnPos, x, y); |
| | | } |
| | | else if (target.gameObject.name == "FireSkillBtn") |
| | | else if (target.gameObject.name == "SkillBtn") |
| | | { |
| | | maskObj.InitForCamera(target, skillBtnPos, x, y); |
| | | } |