public override object Copy(ICopyable zone) { if (zone != null) { var ret = zone as CCRepeatForever; if (ret == null) { return(null); } base.Copy(zone); var param = m_pInnerAction.Copy() as CCActionInterval; if (param == null) { return(null); } ret.InitWithAction(param); return(ret); } else { return(new CCRepeatForever(this)); } }
public override object Copy(ICopyable zone) { if (zone != null) { var ret = (CCSpeed)zone; base.Copy(zone); ret.InitWithAction((CCActionInterval)m_pInnerAction.Copy(), m_fSpeed); return(ret); } else { return(new CCSpeed(this)); } }