protected override void OnInitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer) { _gameEffectService = serviceContainer.GetService <IGameEffectService>(); _gameAudioService = serviceContainer.GetService <IGameAudioService>(); _gameStateService = serviceContainer.GetService <IGameStateService>(); _gameConfigService = serviceContainer.GetService <IGameConfigService>(); _gameResourceService = serviceContainer.GetService <IGameResourceService>(); _gameConstStateService = serviceContainer.GetService <IGameConstStateService>(); _gameCollision2DService = serviceContainer.GetService <IGameCollision2DService>(); _gameUnitService = serviceContainer.GetService <IGameUnitService>(); }
public override void InitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer = null) { base.InitReference(serviceContainer, mgrContainer); _gameEffectService = serviceContainer.GetService <IGameEffectService>(); _gameAudioService = serviceContainer.GetService <IGameAudioService>(); _gameStateService = serviceContainer.GetService <IGameStateService>(); _gameConfigService = serviceContainer.GetService <IGameConfigService>(); _gameCollisionService = serviceContainer.GetService <IGameCollision2DService>(); _gameConstStateService = serviceContainer.GetService <IGameConstStateService>(); _gameUnitService = serviceContainer.GetService <IGameUnitService>(); }