コード例 #1
0
 public void Appear(bool appear)
 {
     if (appear)
     {
         display = this;
     }
     else
     {
         display = null;
     }
     gameObject.GetComponent <Image>().enabled = appear;
     foreach (Image image in GetComponentsInChildren <Image>())
     {
         image.enabled = appear;
     }
 }
コード例 #2
0
 void Awake()
 {
     ui = GetComponentInChildren <DisapearingUI>();
 }