| | |
| | | backgroundImg = transform.Find("Button").GetComponent<Image>(); |
| | | |
| | | towerBuyBtn = GameObject.Find("UICamera/BottomCanvas/Panel/TowerBuyBtn"); |
| | | towerBuyBtnPos = new Vector2(-3, -862); |
| | | towerBuyBtnPos = new Vector2(215, -862); |
| | | tipsUI = transform.Find("Tips").gameObject; |
| | | tipsUI.transform.SetAsLastSibling();//把tips放在最下面 |
| | | |
| | |
| | | SetRimActive(true); |
| | | AddButtonListener(towerBuyBtn, ac); |
| | | Image btnImg = towerBuyBtn.GetComponent<Image>(); |
| | | InitRectGuidance(btnImg, 189, 73.5f); |
| | | InitRectGuidance(btnImg, 159, 73.5f); |
| | | SetRimPos(towerBuyBtn); |
| | | //maskObj.ShowImmediately(); |
| | | |
| | |
| | | AddButtonListener(towerBuyBtn, ac); |
| | | |
| | | Image btnImg = towerBuyBtn.GetComponent<Image>(); |
| | | InitRectGuidance(btnImg, 189, 73.5f); |
| | | InitRectGuidance(btnImg, 159, 73.5f); |
| | | SetRimPos(towerBuyBtn); |
| | | //maskObj.ShowImmediately(); |
| | | } |