Пример #1
0
 public void BuyClicked()
 {
     if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
     {
         shopMain.BuyResource(resource, 10);
         shopMain.RefreshResource(resource, this);
     }
     else
     {
         shopMain.BuyResource(resource, 1);
         shopMain.RefreshResource(resource, this);
     }
 }