Exemple #1
0
 public PlayerSp(PlayerShared ply)
 {
     Name     = ply.Name;
     Health   = ply.Health;
     Position = ply.Position;
     Guid     = ply.Guid;
     Alive    = ply.Alive;
 }
Exemple #2
0
 public void UpdatePlayer(PlayerShared ply)
 {
     Name     = ply.Name;
     Health   = ply.Health;
     Position = ply.Position;
     Guid     = ply.Guid;
     Alive    = ply.Alive;
 }
 public PlayerMp(PlayerShared ply)
 {
     Alive    = true;
     Name     = ply.Name;
     Health   = 100;
     Position = new Vector2(_rand.Next(-100 / 2, 100 / 2), _rand.Next(-100 / 2, 100 / 2));
     Guid     = Guid.NewGuid();
 }