Beispiel #1
0
        void Awake()
        {
            dfUnity     = DaggerfallUnity.Instance;
            audioSource = GetComponent <AudioSource>();
            audioSource.spatialBlend = 0;
            dfAudioSource            = GetComponent <DaggerfallAudioSource>();
            dfSongPlayer             = GetComponent <DaggerfallSongPlayer>();

            dfPauseOptionsWindow       = new DaggerfallPauseOptionsWindow(uiManager);
            dfCharacterSheetWindow     = new DaggerfallCharacterSheetWindow(uiManager);
            dfInventoryWindow          = new DaggerfallInventoryWindow(uiManager);
            dfControlsWindow           = new DaggerfallControlsWindow(uiManager);
            dfJoystickControlsWindow   = new DaggerfallJoystickControlsWindow(uiManager);
            dfUnityMouseControlsWindow = new DaggerfallUnityMouseControlsWindow(uiManager);
            dfTravelMapWindow          = new DaggerfallTravelMapWindow(uiManager);
            dfAutomapWindow            = new DaggerfallAutomapWindow(uiManager);
            dfBookReaderWindow         = new DaggerfallBookReaderWindow(uiManager);
            dfQuestJournalWindow       = new DaggerfallQuestJournalWindow(uiManager);
            dfTalkWindow       = new DaggerfallTalkWindow(uiManager);
            dfSpellBookWindow  = new DaggerfallSpellBookWindow(uiManager);
            dfSpellMakerWindow = new DaggerfallSpellMakerWindow(uiManager);
            dfCourtWindow      = new DaggerfallCourtWindow(uiManager);

            dfExteriorAutomapWindow = new DaggerfallExteriorAutomapWindow(uiManager);

            dfQuestInspector = new QuestMachineInspectorWindow(uiManager);

            Questing.Actions.GivePc.OnOfferPending += GivePc_OnOfferPending;

            SetupSingleton();
        }
        void Awake()
        {
            dfUnity     = DaggerfallUnity.Instance;
            audioSource = GetComponent <AudioSource>();
            audioSource.spatialBlend = 0;
            dfAudioSource            = GetComponent <DaggerfallAudioSource>();
            dfSongPlayer             = GetComponent <DaggerfallSongPlayer>();

            dfPauseOptionsWindow   = new DaggerfallPauseOptionsWindow(uiManager);
            dfCharacterSheetWindow = new DaggerfallCharacterSheetWindow(uiManager);
            dfInventoryWindow      = new DaggerfallInventoryWindow(uiManager);
            dfTravelMapWindow      = new DaggerfallTravelMapWindow(uiManager);
            dfAutomapWindow        = new DaggerfallAutomapWindow(uiManager);

            dfExteriorAutomapWindow = new DaggerfallExteriorAutomapWindow(uiManager);

            dfQuestInspector = new QuestMachineInspectorWindow(uiManager);

            SetupSingleton();
        }
        void Awake()
        {
            dfUnity     = DaggerfallUnity.Instance;
            audioSource = GetComponent <AudioSource>();
            audioSource.spatialBlend = 0;
            dfAudioSource            = GetComponent <DaggerfallAudioSource>();

            dfPauseOptionsWindow          = new DaggerfallPauseOptionsWindow(uiManager);
            dfPauseOptionsWindow.OnClose += PauseOptionsDialog_OnClose;

            dfCharacterSheetWindow          = new DaggerfallCharacterSheetWindow(uiManager);
            dfCharacterSheetWindow.OnClose += CharacterSheetWindow_OnClose;

            dfInventoryWindow          = new DaggerfallInventoryWindow(uiManager);
            dfInventoryWindow.OnClose += InventoryWindow_OnClose;

            dfTravelMapWindow = new DaggerfallTravelMapWindow(uiManager);

            SetupSingleton();
            PostMessage(startupMessage);
        }