Esempio n. 1
0
 public int GetIndex(Personnage _perso)
 {
     return(Clients.IndexOf(_perso));
 }
Esempio n. 2
0
 public void AddClient(Personnage _perso)
 {
     _perso.Position = new Vector2(Position.X + Main.Rand.Next(0, Texture.Width - _perso.Texture.Width), Position.Y + (Texture.Height - _perso.Texture.Height));
     _perso.Effect   = (Main.Rand.Next(2) == 1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
     Clients.Add(_perso);
 }