Пример #1
0
        public override object Copy(ICopyable pZone)
        {
            CCBSetSpriteFrame pRet;

            if (pZone != null)
            {
                pRet = (CCBSetSpriteFrame) (pZone);
            }
            else
            {
                pRet = new CCBSetSpriteFrame();
                pZone =  (pRet);
            }

            pRet.InitWithSpriteFrame(mSpriteFrame);
            base.Copy(pZone);
            return pRet;
        }
Пример #2
0
 /** creates a Place action with a position */
 public static CCBSetSpriteFrame Create(CCSpriteFrame pSpriteFrame)
 {
     var ret = new CCBSetSpriteFrame();
     ret.InitWithSpriteFrame(pSpriteFrame);
     return ret;
 }