public static GameSprite Find(GameSprite.Name name) { //get the singleton GameSpriteManager pMan = privGetInstance(); Debug.Assert(pMan != null); // Compare functions only compares two Nodes // So: Use a reference node // fill in the needed data // use in the Compare() function Debug.Assert(pSpriteRef != null); pSpriteRef.WashNodeData(); //find the node by name pSpriteRef.SetName(name); GameSprite pData = (GameSprite)pMan.baseFindNode(pSpriteRef); return(pData); }