Exemple #1
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;
        }
Exemple #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);
        }