public void Awake() { _updateQueue = new Queue <UpdateStateRequest>(); var assetReferences = GetComponent <AssetReferences>(); _assetService = new AssetService(assetReferences); _systemCommandService = new SystemCommandService(); var objects = GetComponent <SceneObjects>(); _gameObjectService = new GameObjectService(objects.GameObjects, _assetService); }
public ComponentService(GameObjectService gameObjectService, AssetService assetService) { _gameObjectService = gameObjectService; _assetService = assetService; }
public GameObjectService(IEnumerable <GameObject> initialObjects, AssetService assetService) { _gameObjects = new IntMap <GameObject>(initialObjects); _assetService = assetService; _componentService = new ComponentService(this, assetService); }