Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (tutorialsFinished == 0 && !tutorialPanels[0].GetComponent <TutorialMove>().IsFollowing())
        {
            AdvanceTutorial();
        }
        if (!isOculus)
        {
            if (tutorialsFinished == 1 && SearchPanelsControl.GetInstance().GetIfPanelsEnabled())
            {
                AdvanceTutorial();
            }
        }
        else
        {
            if (tutorialsFinished == 1 && OculusSearchPanelsControl.GetInstance().GetIfPanelsEnabled())
            {
                AdvanceTutorial();
            }
        }

        if (tutorialsFinished == 2 && !UniverseSystem.GetInstance().GetCurrentYear().Equals(UniverseSystem.LOBBY_YEAR_STRING))
        {
            AdvanceTutorial();
        }
        if (tutorialsFinished == 3 && CategoryManager.GetInstance().GetNumSelected() > 0)
        {
            AdvanceTutorial();
        }
    }
Beispiel #2
0
 public void SkipTutorials()
 {
     Debug.Log("Skipping Tutorials");
     foreach (GameObject tutorial in tutorialPanels)
     {
         tutorial.SetActive(false);
     }
     tutorialsFinished = tutorialPanels.Length;
     OculusSearchPanelsControl.GetInstance().displayPanels();
 }
Beispiel #3
0
    // private ToggleButton

    // Use this for initialization
    void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(this);
        }
        else
        {
            instance = this;
        }
    }