/// Clones the instance.
    public override e2dPreset Clone()
    {
        e2dCurveWalkPreset result = new e2dCurveWalkPreset();

        result.Copy(this);
        return(result);
    }
Example #2
0
    public override e2dPreset Clone()
    {
        e2dCurveWalkPreset e2dCurveWalkPreset = new e2dCurveWalkPreset();

        e2dCurveWalkPreset.Copy(this);
        return(e2dCurveWalkPreset);
    }
    /// Copies data from another preset. Assumes both presets are of the same kind.
    public override void Copy(e2dPreset other)
    {
        e2dCurveWalkPreset preset = (e2dCurveWalkPreset)other;

        angleChangePerUnit = preset.angleChangePerUnit;
        frequencyPerUnit   = preset.frequencyPerUnit;
        cohesionPerUnit    = preset.cohesionPerUnit;
    }
 /// Clones the instance.
 public override e2dPreset Clone()
 {
     e2dCurveWalkPreset result = new e2dCurveWalkPreset();
     result.Copy(this);
     return result;
 }