Exemplo n.º 1
0
        public static GameObject find(GameObject.GameObjectName gameObjectName)
        {
            GhostManager ghostManInst = GhostManager.getSingletonInstance();

            ghostRef.cObject.cGameObjectName = gameObjectName;

            Ghost ghostNode = (Ghost)ghostManInst.genericFind(ghostRef);

            Debug.Assert(ghostNode != null);
            return(ghostNode.cObject);
        }
Exemplo n.º 2
0
        public static void remove(GameObject targetNode)
        {
            Debug.Assert(targetNode != null);
            GhostManager pMan = GhostManager.getSingletonInstance();

            // Compare functions only compares two Nodes
            ghostRef.cObject.cGameObjectName = targetNode.cGameObjectName;
            Ghost pData = (Ghost)pMan.genericFind(ghostRef);

            // release the resource
            pData.cObject = new NullGameObject();
            pMan.genericRemove(pData);
        }