Пример #1
0
 public void Launch()
 {
     voice = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundManager>();
     if (id == 0)
     {
         Enable(Constants.GetLine("student", lang) + " 3", Constants.GetLine("invocation0", lang), voice.sounds["invoCthulhu"]);
     }
     else if (id == 1)
     {
         shake.ShakeCamera();
         Enable(Constants.GetLine("student", lang) + " 1", Constants.GetLine("invocation1", lang), voice.sounds["invocation1"]);
     }
     else if (id == 2)
     {
         Enable(Constants.GetLine("student", lang) + " 2", Constants.GetLine("invocation2", lang), voice.sounds["invocation2"]);
     }
     else if (id == 3)
     {
         reiSr.enabled = true;
         Enable(Constants.GetLine("student", lang) + " 3", Constants.GetLine("invocation3", lang), voice.sounds["invocation3"]);
     }
     else if (id == 4)
     {
         flash.FlashPanel();
         reiSr.enabled = false;
         Enable(Constants.GetLine("student", lang) + " 2", Constants.GetLine("invocation4", lang), voice.sounds["invocation4"]);
     }
     else if (id == 5)
     {
         Enable(Constants.GetLine("student", lang) + " 1", Constants.GetLine("invocation5", lang), voice.sounds["invocation5"]);
     }
     else if (id == 6)
     {
         Enable(Constants.GetLine("student", lang) + " 3", Constants.GetLine("invocation6", lang), voice.sounds["invocation6"]);
     }
     else if (id == 7)
     {
         Enable("Tsuma", Constants.GetLine("invocation7", lang), voice.sounds["invocation7"]);
     }
     else if (id == 8)
     {
         SceneManager.LoadScene("Main");
     }
     else if (id == 100)
     {
         Enable("Tsuma", Constants.GetLine("ending1", lang), voice.sounds["end0"]);
     }
     else if (id == 101)
     {
         Enable("Rei", Constants.GetLine("ending2", lang), voice.sounds["end1"]);
     }
     else if (id == 102)
     {
         Enable("Rei", Constants.GetLine("ending3", lang), voice.sounds["end2"]);
     }
     else if (id == 103)
     {
         Enable("Rei", Constants.GetLine("ending3", lang), voice.sounds["end3"]);
         GameObject go = new GameObject("GameOverManager", typeof(GameOverManager));
         go.GetComponent <GameOverManager>().type = GameOverManager.EndType.Victory;
         SceneManager.LoadScene("Ending");
     }
     id++;
 }