public void SelectNowTurret(GameManager.whichObject _name) { if (!buildManager.nowBuilding) { Debug.Log("沒有開啟建築模式"); return; } if (!buildManager.nowSelect) { hintManager.CreatHint("目前正在前往蓋塔防"); return; } tmpTurret = Data.getTowerData(_name); if (tmpTurret.TurretName != GameManager.whichObject.None) { if (playerObtain.Check_MoneyAmount(tmpTurret.cost_Money)) { buildManager.SelectToBuild(tmpTurret, tmpTurret.detectObjPrefab); } else { hintManager.CreatHint("資源不足"); } } }
public void CorrectMySelect() { if (myState != UpdateManager.Myability.None) { if (!selectSort.nowUpdate) { GoWaitToUpdate(); } else { hintManager.CreatHint("正在升級中"); } } else { hintManager.CreatHint("選擇一個能力進行升級"); } }