Exemplo n.º 1
0
    private void Gather(GameObject self, ResourceTypes.Types type, int amount)
    {
        WorkerInventory inventory = self.gameObject.GetComponent <WorkerInventory>();

        inventory.AddResource(type, amount);
        gatherProgress += amount;
    }