Exemplo n.º 1
0
 private void ResetLevel(object sender, EventArgs e)
 {
     FreezeRuntime = true;
     EntityHandler.KillEntites(sender, e);
     Texture2D[] backupPoses = Character.Poses;
     Character       = new Player();
     Character.Poses = backupPoses;
     Level           = new Level();
     Level.SpawnEntities();
     Console.WriteLine(EntityHandler.GetEntityTree());
     FreezeRuntime = false;
 }