Example #1
0
        public override void OnDestroy()
        {
            m_Instance = null;
            if (rt != null)
            {
                RenderTexture.ReleaseTemporary(rt);
            }

            rt = null;
            base.OnDestroy();
        }
Example #2
0
        public override void Awake()
        {
            base.Awake();

            var t = controller.transform;

            ShowContext          = false;
            Layout               = 0;
            IsLobbyLoadOk        = false;
            m_DialogueFrame      = t.GetMonoILRComponent <DialogueFrame>("DefaultDialogueFrame");
            m_CurrentDialogueId  = 0;
            dialogueOutlineScale = 1f;
            GuideObj             = t.parent.FindEx("Guide").gameObject;

            t.GetComponent <UIButton>("DefaultDialogueFrame/Container/Down/SkipBtn").onClick.Add(new EventDelegate(OnSkipBtnClick));

            m_Instance      = this;
            m_Panel         = controller.transform.GetComponentEx <UIPanel>();
            m_Panel.enabled = false;
        }