コード例 #1
0
        public override object Copy(ICopyable pZone)
        {
            CCJumpTiles3D pCopy;
            if (pZone != null)
            {
                pCopy = (CCJumpTiles3D) (pZone);
            }
            else
            {
                pCopy = new CCJumpTiles3D();
                pZone =  (pCopy);
            }

            base.Copy(pZone);

            pCopy.InitWithJumps(m_nJumps, m_fAmplitude, m_sGridSize, m_fDuration);

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

            if (pZone != null)
            {
                pCopy = (CCJumpTiles3D)(pZone);
            }
            else
            {
                pCopy = new CCJumpTiles3D();
                pZone = (pCopy);
            }

            base.Copy(pZone);

            pCopy.InitWithJumps(m_nJumps, m_fAmplitude, m_sGridSize, m_fDuration);

            return(pCopy);
        }