public void _DoAwake(IServiceContainer serviceContainer) { _simulatorService = serviceContainer.GetService <ISimulatorService>() as SimulatorService; _networkService = serviceContainer.GetService <INetworkService>() as NetworkService; _constStateService = serviceContainer.GetService <IConstStateService>(); _constStateService = serviceContainer.GetService <IConstStateService>(); if (IsVideoMode) { _constStateService.SnapshotFrameInterval = 20; //OpenRecordFile(RecordPath); } }
public void DoAwake(IServiceContainer serviceContainer) { _simulationService = serviceContainer.GetService <ISimulation>(); _constStateService = serviceContainer.GetService <IConstStateService>(); #if !UNITY_EDITOR IsVideoMode = false; #endif if (IsVideoMode) { _constStateService.SnapshotFrameInterval = 20; OpenRecordFile(RecordPath); _constStateService.IsVideoMode = true; } }
public virtual void InitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer) { _serviceContainer = serviceContainer; //通用Service _ecsFacadeService = serviceContainer.GetService <IECSFacadeService>(); _randomService = serviceContainer.GetService <IRandomService>(); _timeMachineService = serviceContainer.GetService <ITimeMachineService>(); _constStateService = serviceContainer.GetService <IConstStateService>(); _inputService = serviceContainer.GetService <IInputService>(); _viewService = serviceContainer.GetService <IViewService>(); _audioService = serviceContainer.GetService <IAudioService>(); _map2DService = serviceContainer.GetService <IMap2DService>(); _resService = serviceContainer.GetService <IResService>(); _effectService = serviceContainer.GetService <IEffectService>(); _eventRegisterService = serviceContainer.GetService <IEventRegisterService>(); }
public void DoAwake(IServiceContainer serviceContainer) { _simulationService = serviceContainer.GetService <ISimulation>(); _constStateService = serviceContainer.GetService <IConstStateService>(); rt = new RenderTexture(renderTextureSize.x, renderTextureSize.y, 1, RenderTextureFormat.ARGB32); gameCamera.targetTexture = rt; #if !UNITY_EDITOR IsVideoMode = false; #endif if (IsVideoMode) { FrameBuffer.SnapshotFrameInterval = 20; OpenRecordFile(RecordPath); _constStateService.IsVideoMode = true; } //set resolution for debug Screen.SetResolution(1024, 768, false); }