示例#1
0
        public static void RegisterSystems(World world, SystemCategories categories)
        {
            var systems = new List <Type>();

            if ((categories & SystemCategories.Streaming) == SystemCategories.Streaming)
            {
                systems.AddRange(new []
                {
                    typeof(SceneSystemGroup),
                    typeof(SceneSystem),
                    typeof(ResolveSceneReferenceSystem),
                    typeof(SceneSectionStreamingSystem)
                });
            }

#if !UNITY_DISABLE_MANAGED_COMPONENTS
            if ((categories & SystemCategories.HybridComponents) == SystemCategories.HybridComponents)
            {
                systems.AddRange(new []
                {
                    typeof(CompanionGameObjectUpdateSystem),
                    typeof(CompanionGameObjectUpdateTransformSystem)
                });
            }
#endif

            DefaultWorldInitialization.AddSystemsToRootLevelSystemGroups(world, systems);
        }
示例#2
0
        public static void RegisterSystems(World world, SystemCategories categories)
        {
            var systems = new List <Type>();

            if (categories.HasFlag(SystemCategories.Streaming))
            {
                systems.AddRange(new []
                {
                    typeof(SceneSystemGroup),
                    typeof(SceneSystem),
                    typeof(ResolveSceneReferenceSystem),
                    typeof(SceneSectionStreamingSystem)
                });
            }

            DefaultWorldInitialization.AddSystemsToRootLevelSystemGroups(world, systems);
        }
示例#3
0
 public static void LogEntry(SystemCategories category, string message)
 {
     LogEntry(new SystemCategories[] { category }, message);
 }
示例#4
0
文件: Form1.cs 项目: LeBIIIa/NTNN
 private void SetTextLabel1(SystemCategories category, string text)
 {
     lblStatus1.ToolStripStatusInvokeAction(t => t.Text = text);
     LoggingHelper.LogEntry(category, text);
 }