public void SetVisible(string id, bool visible) { GameObject[] gameObjects; if (m_gameObjectRepository.TryGetGameObjects(id, out gameObjects)) { foreach (var gameObject in gameObjects) { gameObject.SetActive(visible); } } }
public GameObject[] GetObjects(string id) { GameObject[] gameObjects; m_gameObjectRepository.TryGetGameObjects(id, out gameObjects); return(gameObjects); }