void Update()
 {
     if (generator.IsComplete())
     {
         GameObject.Destroy(gameObject);
         hook.Dispose();
     }
     else
     {
         hook.UpdateValue("Mapgeneration: " + generator.GetProgress() * 100 + "%");
     }
 }