void MasterControl::Start()
{
  new InputMaster(context_, this);
  cache_ = GetSubsystem<ResourceCache>();
  graphics_ = GetSubsystem<Graphics>();
  renderer_ = GetSubsystem<Renderer>();

  // Get default style
  defaultStyle_ = cache_->GetResource<XMLFile>("UI/DefaultStyle.xml");
  SetWindowTitleAndIcon();
  //Create console and debug HUD.
  CreateConsoleAndDebugHud();
  //Create the scene content
  CreateScene();
  //Create the UI content
  CreateUI();
  //Hook up to the frame update and render post-update events
}
void TacticsVictory::Start()
{
    gProfiler = GetSubsystem<Profiler>();
    PROFILER_FUNC_ENTER
    Application::Start();

    gTime = GetSubsystem<Time>();

    gLog = new Urho3D::Log(gContext);
    gLog->Open("log.txt");
    gLog->SetLevel(Urho3D::LOG_DEBUG);

    RegistrationFactories();

    CreateComponents();

    gCache->AddResourceDir(gFileSystem->GetProgramDir() + "../TVData");
    gFont = gCache->GetResource<Font>(SET::MENU::FONT::NAME);

    SetWindowTitleAndIcon();
    CreateConsoleAndDebugHud();

    XMLFile *style = gCache->GetResource<XMLFile>("UI/MainStyle.xml");
    gUIRoot->SetDefaultStyle(style);
    
    InitLocalizationSystem();

    gCamera = new lCamera();

    gGUI->Create();

    gFileSelector = new FileSelector(gContext);
    gFileSelector->GetWindow()->SetModal(false);
    gFileSelector->GetWindow()->SetVisible(false);

    SubscribeToEvents();

    CreateNewGame();

    PROFILER_FUNC_LEAVE
}