void Update() { if (Input.GetMouseButtonDown(0) && buying != null) { truck.BuyEquipment(truck.GetMouseGridPosition(), buying); buying = null; } }
public void DragStop() { dragging = false; displayInfoPane = false; equipmentImage.enabled = false; buildHighlight.gameObject.SetActive(false); truck.BuyEquipment(truck.GetMouseGridPosition(), currentEquipType); }