Example #1
0
        protected override void GameStart()
        {
            if (Bridge != null)
            {
                Bridge.Helper.SetOnMainMenuScreen(false);
                Bridge.Helper.OnSettingsButtonClick += OnSettingsButtonClicked;
                Bridge.Helper.SetSettingsButtonVisibility(true);
                Bridge.Helper.SetVisionActive(true);
                Bridge.Helper.SetOsmoWorldStickersAllowed(true);

                AssignRefs();

#if UNITY_EDITOR
                Factory.SetVisionService(new OsmoEditorVisionService(this));
#else
                Factory.SetVisionService(osmoVisionServiceView);
#endif
                hierarchyManager.Setup();
            }
            else
            {
                Debug.LogWarning("[VisionTest] You are running without the Osmo bridge. No Osmo services will be loaded. Bridge.Helper will be null");
            }
        }
 private void Start()
 {
     AssignRefs();
     Factory.SetVisionService(new StandaloneVisionService());
     hierarchyManager.Setup();
 }