public void checkInitArrShopType() { if (!initWhenStart) { towerShopType = new ETowerShopState[ObjectManager.Instance.Towers.Length]; } }
void Start() { shopType = EShopType.NONE; if (!initWhenStart) { towerShopType = new ETowerShopState[ObjectManager.Instance.Towers.Length]; } initPrefab(); if (!initWhenStart) { loadTower(); } }
public void showToast(ETowerShopState type) { switch (type) { case ETowerShopState.TOWER_BUY_DEFAULT: DeviceService.Instance.openToast(GameConfig.ToastTowerBuyDefault); break; case ETowerShopState.TOWER_BUY_ENABLE: DeviceService.Instance.openToast(GameConfig.ToastTowerBuyEnable); break; case ETowerShopState.TOWER_BUY_UNABLE: DeviceService.Instance.openToast(GameConfig.ToastTowerBuyUnable); break; } }