| | |
| | | /// </summary> |
| | | /// <param name="x"></param> |
| | | /// <returns></returns> |
| | | public BulletUICtl GetBulletUICtl(int x) |
| | | public BulletUICtl GetBulletUICtl(int x, int y) |
| | | { |
| | | return this.arrTowerBulletUi[x]; |
| | | } |
| | |
| | | /// </summary> |
| | | /// <param name="x"></param> |
| | | /// <returns></returns> |
| | | public EnergyUICtl GetEnergyUICtl(int x) |
| | | public EnergyUICtl GetEnergyUICtl(int x, int y) |
| | | { |
| | | return this.arrTowerEnergyUi[x]; |
| | | } |
| | |
| | | img.transform.SetAsFirstSibling(); |
| | | EnergyUICtl euc = img.GetComponent<EnergyUICtl>(); |
| | | arrTowerEnergyUi[x] = euc; |
| | | euc.gameObject.SetActive(false); |
| | | // euc.gameObject.SetActive(false); |
| | | } |
| | | |
| | | return; |