added base team class

This commit is contained in:
DerTyp187
2021-10-19 07:26:40 +02:00
parent c5162f3082
commit add5beeb47
5 changed files with 64 additions and 9 deletions

View File

@@ -6,18 +6,20 @@ public class ServerPlayer
{
public GameObject Player;
public bool isAlive;
public Team team;
private int health;
private int kills;
private int deaths;
private const int defaultHp = 100;
public ServerPlayer(GameObject _Player, bool _isAlive = true, int _health = defaultHp, int _kills = 0, int _deaths = 0)
public ServerPlayer(GameObject _Player, bool _isAlive = true, int _health = defaultHp, int _kills = 0, int _deaths = 0, Team _team = null)
{
Player = _Player;
isAlive = _isAlive;
health = _health;
kills = _kills;
deaths = _deaths;
team = _team;
}
public void Respawn()