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; }
//private bool tower_selected; public Cursor(Laser_Turret Parent, InputController Input, Level Region) { input = Input; parent = Parent; player = Parent.id; region = Region; position = parent.getPosition(); switch (player){ case "Player 1": position.X += 10f; break; case "Player 2": position.X -= 10f; break; default: throw new NotImplementedException("Received unexpected output"); } color = parent.color; }