コード例 #1
0
        internal static IEnumerator <object> CreateInstance()
        {
            GameSystemData instance = new GameSystemData();

            Table <string, PrefabAsset> prefabCache = new Table <string, PrefabAsset>()
            {
                Name = nameof(PrefabCache),
            };

            instance.Add(prefabCache);

            Instance = instance;
            GameStart.TaskCount--;
            yield break;
        }
コード例 #2
0
ファイル: GameStart.cs プロジェクト: ZhangHuan0407/BMPFont
        /* ctor */
        /// <summary>
        /// 返回游戏启动实例,此类型必须包含无参公开构造函数
        /// </summary>
        public GameStart()
        {
            CreateInstances = new List <IEnumerator <object> >()
            {
                Setting.CreateInstance(),
                    GameSystemData.CreateInstance(),
            };

            StartInstance = new List <IEnumerator <object> >()
            {
                Setting.StartInstance(),
                    GameSystemData.StartInstance(),
            };
            Windows = new List <Type>()
            {
                typeof(FileAndDirectoryWindow),
                typeof(FontSettingWindow),
                typeof(MakeSureWindow),
                typeof(MenuWindow),
                typeof(MessageWindow),
                typeof(ProcessWindow),
                typeof(RendererWindow),
            };
        }