public void Initialize(Contexts contexts, MessageBus messageBus)
 {
     _contexts           = contexts;
     _viewHandler        = GetComponent <ViewHandler <TScope> >();
     _entityViewDatabase = GetComponent <EntityViewDatabase <TScope> >();
     _contexts.Singleton().AddGlobalComponentListener(this);
 }
Esempio n. 2
0
 public void Initialize(Contexts contexts, MessageBus messageBus)
 {
     _contexts           = contexts;
     _assetFactory       = GetComponent <AssetFactory>();
     _entityViewDatabase = GetComponent <EntityViewDatabase <TScope> >();
     _orientationHandler = GetComponent <IOrientationHandler <TScope> >();
     _positionHandler    = GetComponent <IPositionHandler <TScope> >();
     _contexts.Singleton().AddGlobalComponentListener(this);
 }