コード例 #1
0
ファイル: TownManager.cs プロジェクト: dqchess/Descension
        IEnumerator Initialize()
        {
            Database.Initialize();
            SpriteManager.instance.Initialize();
            LoadUnlocks();

            ItemGenerator.Initialize();
            PcGenerator.Initialize();
            QuestGenerator.Initialize();
            StockpileManager.instance.Initialize();
            ModelManager.instance.Initialize();

            PcManager.instance.Initialize();
            //PcManager.instance.Load();
            PcManager.instance.Generate();

            questManager.Initialize();

            PortraitRoom.instance.Initialize(PcManager.instance.PcDataList.Count);

            guiManager.Initialize(buildingObjects);

            //AudioManager.instance.PlayMusic("Back Home", 0, 5f);
            AudioManager.instance.PlayAmbient("Town Day", true);

            return(null);
        }
コード例 #2
0
ファイル: SandboxManager.cs プロジェクト: dqchess/Descension
        IEnumerator Initialize()
        {
            Database.Initialize();
            ItemGenerator.Initialize();
            PcGenerator.Initialize();

            ModelManager.instance.Initialize();

            guiManager.Initialize();

            return(null);
        }
コード例 #3
0
        private void GeneratePcData()
        {
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Male, "Imperial", "Soldier"));
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Female, "", "Scout"));
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Female, "", "Priest"));
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Male, "", "Apprentice"));
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Female, "", "Rogue"));
            pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.Male, "", "Citizen"));

            for (int i = 0; i < 14; i++)
            {
                pcDataList.Add(PcGenerator.Generate(pcDataList.Count, Gender.None, "", ""));
            }
        }
コード例 #4
0
        IEnumerator Initialize()
        {
            Database.Initialize();
            SpriteManager.instance.Initialize();
            ItemGenerator.Initialize();
            PcGenerator.Initialize();
            ModelManager.instance.Initialize();

            Load();

            PcManager.instance.Initialize();
            PcManager.instance.Load();
            PcManager.instance.SetupParty();

            NpcManager.instance.Initialize();

            guiManager.Initialize(currentQuest);

            //AudioManager.instance.PlayMusic("Caves of Madness", 0, 5f);
            AudioManager.instance.PlayAmbient("Castle Abandoned", true);

            ExploreMode();
            return(null);
        }