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

        truck.BuyEquipment(truck.GetMouseGridPosition(), currentEquipType);
    }