void RefuelCallback(int resourceAmount) { FuelTank tank = PlayerData.Instance.GetCurrentVehicleFuelTank(); ResourceStorage inventory = PlayerData.Instance.GetInventory(); ResourceType type = ResourceType.Crystal; float fuel = tank.Refuel(type, inventory.TakeResource(type, resourceAmount)); tank.AddFuel(fuel); UpdateValues(); }