// Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.K))
        {
            uiMa.BuyTower();
        }

        if (Input.GetKeyDown(KeyCode.L))
        {
            uiMa.UpgradeTower();
        }
    }
Exemplo n.º 2
0
 public void BuyTower()
 {
     commandTarget.BuyTower();
     source.Play(0);
 }