Exemplo n.º 1
0
        private GameObject GetPlayerPrefabFromLoadout(PlayerLoadout playerLoadout)
        {
            switch (playerLoadout.PlayerModel)
            {
            case PlayerModel.Man:
                return((currentTeam == Team.Red) ? redTeamMalePlayerPrefab : blueTeamMalePlayerPrefab);

            case PlayerModel.Woman:
                return((currentTeam == Team.Red) ? redTeamFemalePlayerPrefab : blueTeamFemalePlayerPrefab);

            default:
                return(redTeamMalePlayerPrefab);
            }
        }
Exemplo n.º 2
0
 public void SetPassiveFromLoadout(PlayerLoadout playerLoadout)
 {
     currentPassive = playerLoadout.Passive;
 }
 public void SetPlayerLoadout(PlayerLoadout playerLoadout)
 {
     this.playerLoadout = playerLoadout;
 }