コード例 #1
0
 public PlayerMatchInstance()
 {
     name = PlayerFirstNameGenerator.GetFirstName();
     playerStats = new PlayerStats();
     equippedPlaystyles = new EquippedPlaystyles();
     currentPlaystyle = equippedPlaystyles.GetPlaystyle(0);
     playerBaseModList = new ModifierList();
     playerShotCoordProbabilities = new ShotCoordProbabilities();
     RefreshModListWithPlaystyle();
 }
コード例 #2
0
 public PlayerMatchInstance(string name)
 {
     this.name = name;
     playerStats = new PlayerStats();
     equippedPlaystyles = new EquippedPlaystyles();
     currentPlaystyle = equippedPlaystyles.GetPlaystyle(0);
     playerBaseModList = new ModifierList();
     playerShotCoordProbabilities = new ShotCoordProbabilities();
     RefreshModListWithPlaystyle();
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 public void SetCurrentPlaystyle(int equippedIndex)
 {
     currentPlaystyle = equippedPlaystyles.GetPlaystyle(equippedIndex);
 }