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; }
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); }