public void Buy()
 {
     if (mapManager == null)
     {
         mapManager = FindObjectOfType <MapManager>();
     }
     mapManager.Buy(itemType, cost);
 }