コード例 #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;
 }
コード例 #2
0
 /// <summary>
 /// Convenience function for lazy coding to hide this screen. USE WITH CAUTION!
 /// </summary>
 public virtual void Hide()
 {
     UISystemManager.Close(this);
 }
コード例 #3
0
 /// <summary>
 /// Show this screen
 /// </summary>
 public virtual void Show()
 {
     UISystemManager.Open(this);
 }