Esempio n. 1
0
 public Spawnable(Level Region, Vector2 Position)
 {
     //parent = Parent;
     region = Region;
     randomizer = new Random();
     double temp = randomizer.Next(0, 1);
     target = region.getPlayer((int)Math.Floor(temp));
     position = Position;
     direction = target.getPosition() - position;
     direction.Normalize();
     health = 10;
     update_timer = 5000f;
 }