public ResourceHub(ISceneDirector sceneDirector) { globalScopeResourceStore = new ResourceStore(); sceneScopeResourceStore = new ResourceStore(); sceneDirector.sceneLoading += OnSceneLoading; }
public SignalHub(ISceneDirector sceneDirector) { globalScopeSignalRegistry = new AltoSignalRegistry(); sceneScopeSignalRegistry = new AltoSignalRegistry(); sceneDirector.sceneLoading += OnSceneLoading; }
public TweenerHub(ISceneDirector sceneDirector, ITimeKeeper timeKeeper) { _timeKeeper = timeKeeper; sceneScopeTweener = new AltoTweener(); sceneDirector.sceneLoading += OnSceneLoading; sceneDirector.sceneUpdate += OnSceneUpdate; }
//---------------------------------------------------------------------- // Init //---------------------------------------------------------------------- public void Init( GameObject gameObject, int numSourcePool, ISceneDirector sceneDirector, IResourceStore resourceStore ) { _sourcePool.Init(gameObject, AudioSourceObjectName, numSourcePool); _resourceStore = resourceStore; sceneDirector.sceneUpdate += OnSceneUpdate; }
public TimeKeeper(ISceneDirector sceneDirector) { sceneDirector.sceneLoading += OnSceneLoading; sceneDirector.sceneUpdate += OnSceneUpdate; }
public ObjectPoolHub(ISceneDirector sceneDirector) { sceneScopeObjectPoolRegistry = new AltoObjectPoolRegistry(); sceneDirector.sceneLoading += OnSceneLoading; }