Beispiel #1
0
 private void Awake()
 {
     slider = GetComponent <Slider>();
     if (_int != null)
     {
         slider.value = _int.GetInt();
         SetRTCPValue();
     }
     sliderValueText.text = slider.value.ToString();
 }
 private void Awake()
 {
     //DontDestroyOnLoad(this.gameObject);
     canvasGroup = GetComponent <CanvasGroup>();
     loadLevel   = GetComponent <LoadLevel>();
     if (SceneManager.GetActiveScene().buildIndex - 1 < 0)
     {
         return;
     }
     if (lastLevelPassFail.GetInt() == 1)
     {
         ActivateTransitionText(SceneManager.GetActiveScene().buildIndex - 1);
     }
     if (lastLevelPassFail.GetInt() == 2)
     {
         ActivateDeathText();
     }
 }