예제 #1
0
 public ScreenFactory(IEnumerable <ScreenController> screens, ScreenRoot screenRoot, DiContainer container)
 {
     _screens    = screens;
     _screenRoot = screenRoot;
     _container  = container;
 }
예제 #2
0
 public void Dispose()
 {
     GameObject.Destroy(_screenRoot);
     _screenRoot = null;
 }
예제 #3
0
 public virtual IScreen FindScreen(string screen)
 {
     return(ScreenRoot.Find(screen)?.GetComponent <IScreen>());
 }