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

        if (Input.GetKeyDown(KeyCode.L))
        {
            uiMa.UpgradeTower();
        }
    }
예제 #2
0
 public void BuyTower()
 {
     commandTarget.BuyTower();
     source.Play(0);
 }