public void Execute(Entity entity, int index, [ReadOnly] ref Settings settings) { GlobalSettings.Initialized = true; GlobalSettings.ReplayEnabled = settings.ReplayEnabled; GlobalSettings.LoggingEnabled = settings.LoggingEnabled; GlobalSettings.LogFilter = StringStore.Retrieve(settings.LogFilter).Split(':'); CommandBuffer.DestroyEntity(entity); }
private void Record() { if (writer == null) { writer = new StreamWriter(Path.Combine(Application.persistentDataPath, "MessageHistory.txt")); } Entities.ForEach((Entity entity, ref MessageHistoryRecord messageHistoryRecord) => { var record = StringStore.Retrieve(messageHistoryRecord.Record); writer.WriteLine(record); PostUpdateCommands.DestroyEntity(entity); }); }