// Start is called before the first frame update
    public void Start()
    {
        menuManager    = GameObject.Find("EpisodeManager");
        ARSelectScript = menuManager.GetComponent <ARSceneSelectUI>();

        if (ARSelectScript.shownMenu == true)
        {
            CloseWelcomeMenu();
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        menuManager = GameObject.Find("EpisodeManager");

        ARSelectScript = menuManager.GetComponent <ARSceneSelectUI>();
        if (sessionOrigin == null)
        {
            return;
        }
        else
        {
            placeOnPlaneScript = sessionOrigin.GetComponent <PlaceObjectsOnPlane>();
            placeOnPlaneScript.placedPrefab = ARSelectScript.episode;
        }
    }
Ejemplo n.º 3
0
    public void Start()
    {
        subMenu.SetActive(false);
        menuButton.SetActive(true);
        menuManager    = GameObject.Find("EpisodeManager");
        ARSelectScript = menuManager.GetComponent <ARSceneSelectUI>();

        if (ARSelectScript.shownEpisode == false)
        {
            ShowInstructions();
        }
        else
        {
            menuButton.SetActive(true);
        }
    }