Exemple #1
0
 public SimulationService() : base()
 {
     _serializer = new SharpSerializer();
     _worldSimulationStateService = Game.Instance.GetService <WorldSimulationStateService>();
     _worldDataAccessService      = Game.Instance.GetService <WorldDataAccessService>();
     _worldSimulationStateService.Load(OnSimulationStateLoaded, () => { });
 }
 private void Start()
 {
     _grassContainer         = new GameObject();
     _grassLocations         = new HashSet <string>();
     _worldDataAccessService = Game.Instance.GetService <WorldDataAccessService>();
     DrawGround();
 }
 public void Start()
 {
     _worldDataAccessService = Game.Instance.GetService <WorldDataAccessService>();
     _rigidBody = GetComponent <Rigidbody>();
 }
 public WorldDataAccessRequest(WorldDataAccessService worldDataAccessService, WorldPersistanceService worldPersistanceService, DataConfig dataConfig) : base()
 {
     _dataConfig = dataConfig;
     _worldPersistanceService = worldPersistanceService;
 }