Пример #1
0
 // Use this for initialization
 void Start()
 {
     app      = AppManager.appManager;
     gManager = GameManager.gManager;
     if (!app.gameToLaunch.isTutorial)
     {
         this.enabled = false;
     }
     else
     {
         currentInfoIndex         = 0;
         textInfo                 = infoUI.transform.Find("Text").GetComponent <Text>();
         tutorialInstructionsData = app.GetComponent <LanguageManager>().tutorialsTexts.GetField(app.gameToLaunch.tutorialName).GetField("ContextualInfo").GetField(app.gameLanguage.ToString());
         nbInfos = tutorialInstructionsData.Count;
         if (nbInfos > 0)
         {
             textInfo.text = tutorialInstructionsData[currentInfoIndex].str;
         }
         else
         {
             this.enabled = false;
         }
         checkForkNextStep = tuto01checks;
         doNextStep        = tuto01actions;
     }
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        actionList        = new List <actionElement>();
        surfaceActionList = new List <actionElement>();
        updater           = GetComponent <Ticko>();
        //brought from Ticko
        //Specify beatduration and background stepswitchers
        beatmultiplier = 1f;
        beatdur        = (60 / GetComponent <Conductor>().bpm);
        //for every background stepswitcher
        BackgroundSwitchers = GameObject.FindGameObjectsWithTag("Background");
        checkstepM          = GetComponent <CheckStep>();
        StartCoroutine(addSampleBeatmap(1));

        conductor  = GetComponent <Conductor>();
        checkstepM = GetComponent <CheckStep>();
        snap       = 0.125f;
        nextbeat  += beatdur * beatmultiplier;
    }