Exemplo n.º 1
0
 public void InitializeRunnerRoot()
 {
     _rootView = GameObject.Find("Root").GetComponent <RootView>();
     RootView.Ctx rootViewCtx = new RootView.Ctx
     {
         returnToStory = _ctx.returnToStoryScene,
     };
     _rootView.SetCtx(rootViewCtx);
     _blockSwipeCommand = new ReactiveProperty <int>().AddTo(_rootView);
     _hideTutorialView  = new ReactiveCommand().AddTo(_rootView);
     CreateHero();
     CreatePositionFinder();
     CreateGameSpeedController();
     CreateScoreContainer();
     InitHUD();
     // _rootView.GetComponent<PoolSetup>().onPoolReady.Subscribe(_ => OnPoolReady()).AddTo(_rootView);
     OnPoolReady();
 }