public PlayerMatchInstance() { name = PlayerFirstNameGenerator.GetFirstName(); playerStats = new PlayerStats(); equippedPlaystyles = new EquippedPlaystyles(); currentPlaystyle = equippedPlaystyles.GetPlaystyle(0); playerBaseModList = new ModifierList(); playerShotCoordProbabilities = new ShotCoordProbabilities(); RefreshModListWithPlaystyle(); }
public PlayerMatchInstance(string name) { this.name = name; playerStats = new PlayerStats(); equippedPlaystyles = new EquippedPlaystyles(); currentPlaystyle = equippedPlaystyles.GetPlaystyle(0); playerBaseModList = new ModifierList(); playerShotCoordProbabilities = new ShotCoordProbabilities(); RefreshModListWithPlaystyle(); }
public PlayerMatchInstance(PlayerSave player) { Debug.Log("Creating PMI with PlayerSave"); name = player.name; playerStats = player.playerStats; equippedPlaystyles = player.GetEquippedPlaystyles(); currentPlaystyle = equippedPlaystyles.GetPlaystyle(0); playerBaseModList = player.modifierList; playerShotCoordProbabilities = player.GetShotCoordProbabilities(); RefreshModListWithPlaystyle(); }
public void SetCurrentPlaystyle(int equippedIndex) { currentPlaystyle = equippedPlaystyles.GetPlaystyle(equippedIndex); }