コード例 #1
0
ファイル: CCRipple3D.cs プロジェクト: pekayatt/cocos2d-xna
        public override object Copy(ICCCopyable pZone)
        {
            CCRipple3D pCopy;
            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCRipple3D) (pZone);
            }
            else
            {
                pCopy = new CCRipple3D();
                pZone =  (pCopy);
            }

            base.Copy(pZone);
            pCopy.InitWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return pCopy;
        }
コード例 #2
0
        public override object Copy(ICCCopyable pZone)
        {
            CCRipple3D pCopy;

            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCRipple3D)(pZone);
            }
            else
            {
                pCopy = new CCRipple3D();
                pZone = (pCopy);
            }

            base.Copy(pZone);
            pCopy.InitWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return(pCopy);
        }