Пример #1
0
        public static SpriteBox Find(SpriteBaseName name)
        {
            SpriteBoxManager sbMan = SpriteBoxManager.GetInstance();
            SpriteBox        sb    = (SpriteBox)sbMan.BaseFind(new SpriteBox {
                name = name
            });

            return(sb);
        }
Пример #2
0
        public static SpriteBox Find(SpriteBox.Name name)
        {
            SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            // Use compare node to compare to search nodes
            pMan.pSpriteBoxCompare.SetName(name);

            SpriteBox pData = (SpriteBox)pMan.BaseFind(pMan.pSpriteBoxCompare);

            return(pData);
        }