示例#1
0
        public static void CloseIfAvailable(Component c)
        {
            WindowController component = (WindowController)c.GetComponent <WindowController>();

            if (!Object.op_Inequality((Object)component, (Object)null))
            {
                return;
            }
            component.Close();
        }
示例#2
0
        private void OnClose()
        {
            WindowController componentInParent = (WindowController)((Component)this).get_gameObject().GetComponentInParent <WindowController>();

            if (Object.op_Equality((Object)componentInParent, (Object)null))
            {
                DebugUtility.LogError("WindowControllerが存在しません");
            }
            else
            {
                if (this.mUnitVoiceData != null)
                {
                    this.mUnitVoiceData.Cleanup();
                }
                if (this.OnCloseEvent != null)
                {
                    this.OnCloseEvent();
                }
                componentInParent.Close();
            }
        }