コード例 #1
0
 public void InitMemberByInstance(WaveDistortion waveDistortion)
 {
     amplitude   = waveDistortion.amplitude;
     waves       = waveDistortion.waves;
     colorGlitch = waveDistortion.colorGlitch;
     phase       = waveDistortion.phase;
 }
コード例 #2
0
        public WaveDistortionDef()
        {
            if (waveDistortionEffect == null)
            {
                waveDistortionEffect = Util.GetComponentVar <WaveDistortion, WaveDistortionDef>(waveDistortionEffect);
            }

            amplitude   = 0.6f;
            waves       = 5f;
            colorGlitch = 0.35f;
            phase       = 0.35f;
        }