diff --git a/Runtime/EcsactDefaults.cs b/Runtime/EcsactDefaults.cs index 72de9c8..55754ad 100644 --- a/Runtime/EcsactDefaults.cs +++ b/Runtime/EcsactDefaults.cs @@ -9,19 +9,15 @@ namespace Ecsact { static public class Defaults { internal static EcsactRuntime? _Runtime; - public static EcsactRuntime Runtime => - _Runtime ?? - throw new Exception( - "Runtime is null, if you want to access it as early as possible " + - "use Ecsact.Defaults.WhenReady" - ); + public static EcsactRuntime Runtime => _Runtime ?? + throw new Exception("Runtime is null, if you want to access it as early " + + "as possible " + + "use Ecsact.Defaults.WhenReady"); internal static Ecsact.Registry? _Registry; - public static Ecsact.Registry Registry => - _Registry ?? - throw new Exception( - "Registry is null, if you want to access it as early as possible " + - "use Ecsact.Defaults.WhenReady" - ); + public static Ecsact.Registry Registry => _Registry ?? + throw new Exception("Registry is null, if you want to access it as early " + + "as possible " + + "use Ecsact.Defaults.WhenReady"); public static Ecsact.UnitySync.EntityGameObjectPool? Pool; public static EcsactRunner? Runner; diff --git a/Runtime/EcsactExecutionOptions.cs b/Runtime/EcsactExecutionOptions.cs index b41e1e3..de604a5 100644 --- a/Runtime/EcsactExecutionOptions.cs +++ b/Runtime/EcsactExecutionOptions.cs @@ -23,7 +23,7 @@ public BuilderEntity AddComponent(C component) private List adds_entities; private List updates; private List updates_entities; - private List updates__entities_indexes; + private List updates_entities_indexes; private List removes; private List removes_entities; private List removes_entities_indexes; @@ -42,7 +42,7 @@ internal ExecutionOptions() { adds_entities = new(); updates = new(); updates_entities = new(); - updates__entities_indexes = new(); + updates_entities_indexes = new(); removes = new(); removes_entities = new(); removes_entities_indexes = new(); diff --git a/Runtime/EntityGameObjectPool.cs b/Runtime/EntityGameObjectPool.cs index 3bdcc65..b1c3f2d 100644 --- a/Runtime/EntityGameObjectPool.cs +++ b/Runtime/EntityGameObjectPool.cs @@ -88,7 +88,7 @@ public GameObject? rootGameObject { private EntityGameObjectPool() { entityComponentIds = new List(); - entityGameObjects = new List(); + entityGameObjects = new List < GameObject ? > (); } void OnEnable() { diff --git a/Runtime/Internal/EcsactRuntimeDefaults.cs b/Runtime/Internal/EcsactRuntimeDefaults.cs index 48452fd..46940a2 100644 --- a/Runtime/Internal/EcsactRuntimeDefaults.cs +++ b/Runtime/Internal/EcsactRuntimeDefaults.cs @@ -73,7 +73,8 @@ internal static void Setup() { // If async no default available registry! if(settings.runner == EcsactRuntimeSettings.RunnerType.AsyncRunner) { cacheRegistry = new CacheRegistry(Ecsact.Defaults.Runtime, reg); - } else if(settings.runner == EcsactRuntimeSettings.RunnerType.DefaultRunner) { + } else if(settings.runner == + EcsactRuntimeSettings.RunnerType.DefaultRunner) { settings.defaultRegistry!.registryId = registry_id; Ecsact.Defaults._Registry = reg; @@ -104,15 +105,18 @@ private static void SetDefaultsRunner(EcsactRuntimeSettings settings) { var defReg = settings.defaultRegistry; if(settings.runner == EcsactRuntimeSettings.RunnerType.DefaultRunner) { - if(defReg.updateMethod == EcsactRuntimeDefaultRegistry.UpdateMethod.None) { + if(defReg.updateMethod == + EcsactRuntimeDefaultRegistry.UpdateMethod.None) { Ecsact.Defaults.Runner = null; - } else if(defReg.updateMethod == EcsactRuntimeDefaultRegistry.UpdateMethod.FixedUpdate) { + } else if(defReg.updateMethod == + EcsactRuntimeDefaultRegistry.UpdateMethod.FixedUpdate) { Ecsact.Defaults.Runner = EcsactRunner.CreateInstance( settings, "Default Fixed Runner" ); - } else if(defReg.updateMethod == EcsactRuntimeDefaultRegistry.UpdateMethod.Update) { + } else if(defReg.updateMethod == + EcsactRuntimeDefaultRegistry.UpdateMethod.Update) { Ecsact.Defaults.Runner = EcsactRunner.CreateInstance( settings, "Default Runner"