protected override void LoadContent()
        {
            LoadCharacter();
            LoadNpcs();
            LoadSounds();
            base.LoadContent();
            OpenMap();
            //Load2DTileMap();
            LoadIsoTileMap();
            LoadGun();
            LoadWindows();
            LoadItems();
            LoadEnemies();
            oldState = new ButtonState();

            missions = gameRef.Content.Load <MissionFactory>(@"Missions\AllMissions");
            missionManager.AddMission(missions.GetMissionById(0));

            dialogueManager.DialogueSelected += missionManager.OnUpdateEvent;

            AllDialogues allDialogues = gameRef.Content.Load <AllDialogues>(@"Dialogues\AllDialogues");

            DialogueService.GetInstance().AllDialogues = allDialogues.Dialogues;
            DialogueService.GetInstance().RegisterDialogueProcessor(OnDialogueSelected);

            //commandManager.RegisterCommand(Keys.I, OpenEquipmentScreen);
            //commandManager.RegisterCommand(Keys.U, OpenInventoryScreen);
            commandManager.RegisterCommand(Keys.Escape, OpenPauseMenuWindow);
            commandManager.RegisterCommand(Keys.L, OpenMissionLogWindow);
            commandManager.RegisterCommand(Keys.E, OpenDialogueWindow);
            commandManager.RegisterCommand(Keys.C, OpenPlayerInfoWindow);

            //TODO: remove after done testing
            //commandManager.RegisterCommand(Keys.E, PickupItem);
        }
 // Start is called before the first frame update
 void Start()
 {
     dialogues    = GetComponent <AllDialogues>();
     dialogueList = dialogues.GetDialogue(thisDialogue);
     UpdateUI(dialogueIndex);
     Music();
 }