Example #1
0
        public static GameObject Find(GameObject.Name name)
        {
            //ensure call Create() first
            GameObjectMan pMan = GameObjectMan.GetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeForCompare.getGameObject().setName(name);

            GameObjectNode pNode = (GameObjectNode)pMan.baseFind(pMan.poNodeForCompare);

            Debug.Assert(pNode != null);

            return(pNode.getGameObject());
        }
Example #2
0
        public static GameObject Find(GameObject.Name name)
        {
            GameObjectMan pMan = GameObjectMan.privGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes
            pMan.poNodeCompare.poGameObj.name = name;

            GameObjectNode pNode = (GameObjectNode)pMan.baseFind(pMan.poNodeCompare);

            Debug.Assert(pNode != null);

            return(pNode.poGameObj);
        }