public void SetVisible(string id, bool visible)
        {
            GameObject[] gameObjects;

            if (m_gameObjectRepository.TryGetGameObjects(id, out gameObjects))
            {
                foreach (var gameObject in gameObjects)
                {
                    gameObject.SetActive(visible);
                }
            }
        }
예제 #2
0
 public GameObject[] GetObjects(string id)
 {
     GameObject[] gameObjects;
     m_gameObjectRepository.TryGetGameObjects(id, out gameObjects);
     return(gameObjects);
 }