public static ProxySprite Add(GameSprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.privGetInstance();

            Debug.Assert(pMan != null);

            ProxySprite pNode = (ProxySprite)pMan.baseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name);

            return(pNode);
        }
Пример #2
0
        public static ProxySprite Add(GameSprite.Name name)
        {
            //ensure call Create() first
            ProxySpriteMan pMan = ProxySpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            ProxySprite pProxySprite = (ProxySprite)pMan.baseAdd();

            Debug.Assert(pProxySprite != null);

            pProxySprite.set(name);
            return(pProxySprite);
        }