Ejemplo n.º 1
0
    /// <summary>
    /// Save the current high score weights to disk
    /// </summary>
    public void SaveGame()
    {
        Debug.Log("Saving Game");
        var ship = new ShipInfo()
        {
            Weights    = _bestWeights,
            HighScore  = _bestWeightScore,
            Generation = _bestWeightGeneration
        };

        ship.SaveToFile();
    }