public void OnStartSeasonClick() { SaveData.current.playerSave = new PlayerSave(new Player(PlayerFirstNameGenerator.GetFirstName())); SaveData.current.calendar.StartSeason(); SaveData.current.calendar.SetCalendarState(CalendarState.SEASON, calendarEventReader); Refresh(); }
public PlayerMatchInstance() { name = PlayerFirstNameGenerator.GetFirstName(); playerStats = new PlayerStats(); equippedPlaystyles = new EquippedPlaystyles(); currentPlaystyle = equippedPlaystyles.GetPlaystyle(0); playerBaseModList = new ModifierList(); playerShotCoordProbabilities = new ShotCoordProbabilities(); RefreshModListWithPlaystyle(); }
public static PlayerSave CreateRandomCPU(int lvl) { PlayerSave playerToReturn = new PlayerSave(); playerToReturn.name = PlayerFirstNameGenerator.GetFirstName(); playerToReturn.playerStats = new PlayerStats(lvl); playerToReturn.shotCoordProbabilities = new ShotCoordProbabilities().GetRawProbabilities(); playerToReturn.modifierList = new ModifierList(); playerToReturn.playstyleDeckIDs = new PlaystyleDeck().ToStringList(); playerToReturn.equippedPlaystylesIDs = new EquippedPlaystyles().ToStringList(); return(playerToReturn); }
private void CreateNewPlayer() { Debug.Log("Created new player"); SaveData.current.playerSave = new PlayerSave(new Player(PlayerFirstNameGenerator.GetFirstName())); Refresh(); }