Пример #1
0
 /*
  * Placing the life pack on the map
 */
 private void ParseLifePackMessage(string[] tokens)
 {
     string[] location = tokens[0].Split(',');
     LifePack lifePack = new LifePack(int.Parse(location[0]), int.Parse(location[1]), int.Parse(tokens[1]));
     GameManager.Instance.GameEngine.AddLifePack(lifePack);
 }
Пример #2
0
 public void AddLifePack(LifePack lifePack)
 {
     map[lifePack.PositionX, lifePack.PositionY] = lifePack;
     lifePacks.Add(lifePack);
 }