Beispiel #1
0
 private void Awake()
 {
     if (this.renderCamera == null)
     {
         throw new System.NullReferenceException(this.gameObject + " not reference renderCamera");
     }
     if (this.windowCanvas == null)
     {
         throw new System.NullReferenceException(this.gameObject + " not reference windowCanvas");
     }
     if (this.dialogCanvas == null)
     {
         throw new System.NullReferenceException(this.gameObject + " not reference dialogCanvas");
     }
     if (_instance != null)
     {
         Destroy(this.gameObject); return;
     }
     DontDestroyOnLoad(this.gameObject);
     _instance = this;
 }
 /// <summary>
 /// Convenience function for lazy coding to hide this screen. USE WITH CAUTION!
 /// </summary>
 public virtual void Hide()
 {
     UISystemManager.Close(this);
 }
 /// <summary>
 /// Show this screen
 /// </summary>
 public virtual void Show()
 {
     UISystemManager.Open(this);
 }