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