Ejemplo n.º 1
0
        public override void Load()
        {
            var lastWrite = File.GetLastWriteTime(typeof(QuestingMod).Assembly.Location);

            UnityEngine.Debug.Log($"[Questing Update | Main]: Questing Update loaded: {version}, build time: {lastWrite.ToShortTimeString()}");
            using (StreamWriter writer = new StreamWriter(path))
            {
                writer.WriteLine($"[Questing Update | Main]: Questing Update loaded: {version}, build time: {lastWrite.ToShortTimeString()}");
                writer.Dispose();
            }

            QuestingVersioning versioning = new QuestingVersioning();

            versioning.InitVersions();
            update = versioning.UpdateVersioner();

            if (versioning.needUpdate == false)
            {
                QuestingNamer namer = new QuestingNamer();
                updateName = namer.Namer();
            }
            else
            {
                updateName = "Questing Update";
            }


            SceneManager.sceneLoaded += OnSceneLoaded;
        }
Ejemplo n.º 2
0
        public override void Load()
        {
            GraphicsSettings.renderPipelineAsset = pipelineAsset;
            var lastWrite = File.GetLastWriteTime(typeof(QuestingMod).Assembly.Location);

            UnityEngine.Debug.Log($"[Questing Update | Main]: Questing Update loaded: {version}, build time: {lastWrite.ToShortTimeString()}");
            QuestLog.Log($"[Questing Update | Main]: Questing Update loaded: {version}, build time: {lastWrite.ToShortTimeString()}", true);

            //new MainGUI();

            if (!Directory.Exists(defaultPath))
            {
                Directory.CreateDirectory(defaultPath);
                File.Create(defaultPath + "Manager.log");
            }

            QuestingVersioning versioning = new QuestingVersioning();

            versioning.InitVersions();
            update = versioning.UpdateVersioner();

            if (versioning.needUpdate == false)
            {
                QuestingNamer namer = new QuestingNamer();
                updateName = namer.Namer();
            }
            else
            {
                updateName = "Questing Update";
            }

            new GlobalManager();
            new GlobalStorage();
            QuestLog.Log("[Questing Update | Main]: Managers Loaded without Error. Version Tags are now Enabled");

            SceneManager.sceneLoaded += OnSceneLoaded;
        }