コード例 #1
0
 public void CompleteClose()
 {
     if (Visible)
     {
         Destroy(current.gameObject);
         current = null;
     }
 }
コード例 #2
0
        public void Open(TransitionType type)
        {
            TransitionScreen screenTemplate = Array.Find(templates, template => template.Type == type);

            if (screenTemplate != null)
            {
                GameObject screen = Instantiate(screenTemplate.gameObject, transform, false);
                screen.SetActive(true);

                current = screen.GetComponent <TransitionScreen>();
            }
        }