Esempio n. 1
0
    /// <summary>
    /// Randomizes the simulation colors of the current simulation.
    /// </summary>
    public void RandomizeSimulationColors()
    {
        var newRandomColors = _generator.GetRandomColors();

        for (int i = 0; i < _currentDescription.speciesData.Length; i++)
        {
            _currentDescription.speciesData[i].color = newRandomColors[i];
        }

        RestartSimulation(_currentDescription, ResetBehavior.None);
    }