コード例 #1
0
    /// <summary>
    /// Restarts the simulation using a specific preset to choose the
    /// initial conditions.
    /// </summary>
    public void RestartSimulation(EcosystemPreset preset,
                                  ResetBehavior resetBehavior = ResetBehavior.FadeInOut)
    {
        var presetDesc = _generator.GetPresetEcosystem(preset);

        RestartSimulation(presetDesc, resetBehavior);

        if (OnPresetLoaded != null)
        {
            OnPresetLoaded();
        }
    }