public void InitMemberByInstance(WaveDistortion waveDistortion) { amplitude = waveDistortion.amplitude; waves = waveDistortion.waves; colorGlitch = waveDistortion.colorGlitch; phase = waveDistortion.phase; }
public WaveDistortionDef() { if (waveDistortionEffect == null) { waveDistortionEffect = Util.GetComponentVar <WaveDistortion, WaveDistortionDef>(waveDistortionEffect); } amplitude = 0.6f; waves = 5f; colorGlitch = 0.35f; phase = 0.35f; }