Ejemplo n.º 1
0
    /// <summary>
    /// Once the OK btn is clicked on the Create new game window
    /// </summary>
    public void NewGameCreated(string terraRoot, string diff, string townName)
    {
        XMLSerie.NewGame();

        isNewGameCreated = true;
        timeClicked      = Time.time;
        DestroyCurrLoadLoading();

        if (string.IsNullOrEmpty(terraRoot))
        {
            _terraRoot = ReturnRandomTerraRoot();
        }
        else
        {
            _terraRoot = terraRoot;
        }

        if (string.IsNullOrEmpty(diff))
        {
            diff = "Easy";
        }
        _diff = diff;
        AssignDificulty();

        _townName = townName;
    }