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); }
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); }