public CharacterAction_Effect Clone(ICharacterActionData action_data, Character self) { CharacterAction_Effect new_effect = new CharacterAction_Effect(); base.CloneData(action_data, new_effect); if (action_data != null) { new_effect.target = self; } new_effect.AttachType = AttachType; return(new_effect); }
protected void CloneData(ICharacterActionData action_data, CharacterAction_EffectBase new_effect) { new_effect.m_ActionData = action_data; new_effect.time = this.time; new_effect.particle_system_prefab = this.particle_system_prefab; new_effect.particle_position = this.particle_position; new_effect.particle_scale = this.particle_scale; if (action_data == null) { new_effect.sound_list = this.sound_list.ToArray(); } else { new_effect.sound_list = this.sound_list; } new_effect.sound_tick = this.sound_tick; new_effect.sound_count = this.sound_count; new_effect.sound_loop = this.sound_loop; }