// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.K)) { uiMa.BuyTower(); } if (Input.GetKeyDown(KeyCode.L)) { uiMa.UpgradeTower(); } }
public void UpgradeTower() { commandTarget.UpgradeTower(); source.Play(0); }