private void ActivateResource(string name)
    {
        // Get Resource and UI from hash table by name.
        Resource   resource   = (Resource)nameToGO[name];
        GameObject uiResource = (GameObject)nameToUI[name];

        // If resource successfully activated, disable UI and move to activatedResources.
        if (resource.ActivateResource())
        {
            uiResource.SetActive(false);
            uiResource.transform.SetParent(activatedResources.transform);
        }
    }