示例#1
0
        private void presetCheck()
        {
            if (Preset != PresetName.none) //load from preset if new state requested
            {
                BasicPresetState preset = new BasicPresetState();
                preset = preset.RequestNewDefault(Preset);

                if (preset != null)
                {
                    this.EmitterAmount   = preset.emitterAmount;
                    this.SpreadDegrees   = preset.spreadDegrees;
                    this.Pitch           = preset.pitch;
                    this.SpreadRadius    = preset.spreadRadius;
                    this.AutoCompRadius  = preset.autoCompRadius;
                    this.CenterRotation  = preset.centerRotation;
                    this.autoCenter      = preset.autoCenter;
                    this.SpreadYAxis     = preset.spreadYAxis;
                    this.SpreadXAxis     = preset.spreadXAxis;
                    this.patternSelect   = preset.patternSelect;
                    this.ExitPointOffset = preset.exitPointOffset;
                    this.ParentRotation  = preset.parentRotation;
                }
                Preset = PresetName.none;
            }
        }
示例#2
0
 private void presetCheck()
 {
     if (Preset != PresetName.none) //load from preset if new state requested
     {
         BasicPresetState.ApplyPreset(this, Preset);
         Preset = PresetName.none;
     }
 }