예제 #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();
        }
    }
예제 #2
0
 // Use this for initialization
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this);
     }
     else
     {
         instance = this;
     }
 }
예제 #3
0
 public void SkipTutorials()
 {
     Debug.Log("Skipping Tutorials");
     foreach (GameObject tutorial in tutorialPanels)
     {
         tutorial.SetActive(false);
     }
     tutorialsFinished = tutorialPanels.Length;
     if (!isOculus)
     {
         SearchPanelsControl.GetInstance().displayPanels();
     }
     else
     {
         OculusSearchPanelsControl.GetInstance().displayPanels();
     }
 }