Beispiel #1
0
        public override object Copy(ICCCopyable pZone)
        {
            CCWavesTiles3D pCopy;
            if (pZone != null)
            {
                pCopy = (CCWavesTiles3D) (pZone);
            }
            else
            {
                pCopy = new CCWavesTiles3D();
                pZone = (pCopy);
            }

            base.Copy(pZone);

            pCopy.InitWithDuration(m_fDuration, m_sGridSize, m_nWaves, m_fAmplitude);

            return pCopy;
        }
        public override object Copy(ICopyable pZone)
        {
            CCWavesTiles3D pCopy;

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

            base.Copy(pZone);

            pCopy.InitWithWaves(m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return(pCopy);
        }