public int GetResourceAmount(ResourceTypeSO resourceType) { return(m_resourceAmountDictionary[resourceType]); }
public void AddResource(ResourceTypeSO resourceType, int amount) { m_resourceAmountDictionary[resourceType] += amount; OnResourceAmountChanged?.Invoke(this, EventArgs.Empty); }