private void Initialize()
 {
     if (this.chatUIViewController is null)
     {
         this.chatUIViewController = BeatSaberUI.CreateViewController <ChatUIViewController>();
         base.StopAllCoroutines();
         base.StartCoroutine(this.PresentView());
     }
 }
Exemplo n.º 2
0
        //METHODS ------------------------------------------------------------------------------------

        private void Awake()
        {
            // For this particular MonoBehaviour, we only want one instance to exist at any time, so store a reference to it in a static property
            //   and destroy any that are created while one already exists.
            if (Instance != null)
            {
                GameObject.DestroyImmediate(this);
                return;
            }
            GameObject.DontDestroyOnLoad(this); // Don't destroy this object on scene changes
            Instance = this;
        }