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() { name = PlayerFirstNameGenerator.GetFirstName(); 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(); }
private void OnPlaystyleChanged(int player) { Playstyle playstyle = GetPlayer(player).GetCurrentPlaystyle(); if (player == 0) { ChangeP1PlaystyleText(playstyle); } else { ChangeCPUPlaystyleText(playstyle); } }
private void ChangeCPUPlaystyleText(Playstyle playstyle) { cpuPlaystyleText.SetText(playstyle.id); }
private void ChangeP1PlaystyleText(Playstyle playstyle) { p1PlaystyleText.SetText(playstyle.id); }
public void ChangePlaystyle(Playstyle playstyle) { title.SetText(playstyle.id); ChangeEffectsList(playstyle.modifiers); }
public void SetPlaystyle(Playstyle playstyle) { this.currentPlaystyle = playstyle; }
public void SetCurrentPlaystyle(int equippedIndex) { currentPlaystyle = equippedPlaystyles.GetPlaystyle(equippedIndex); }