Beispiel #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        Instance       = this;
        Time.timeScale = 1f;
        language       = PlayerPrefs.GetInt("LANGUAGE");

        volumeSlider.onValueChanged.AddListener(delegate { ValueChangeCheck(); });
        SetVolumeStart();
        SetLanguage(language);
    }
Beispiel #3
0
 private void Awake()
 {
     if (UIManagerInGame.instance != null)
     {
         Destroy(this);
     }
     else
     {
         UIManagerInGame.instance = this;
     }
 }
Beispiel #4
0
 private void Awake()
 {
     singleton = this;
 }