Esempio n. 1
0
        public override void Awake()
        {
            base.Awake();

            var t = mDMono.transform;

            m_Left      = t.GetMonoILRComponent <DialogueDataFrame>("Container/Down/Left");
            m_Right     = t.GetMonoILRComponent <DialogueDataFrame>("Container/Down/Right");
            m_Middle    = t.GetMonoILRComponent <DialogueDataFrame>("Container/Down/Middle");
            m_Container = t.FindEx("Container").gameObject;

            t.GetComponent <UIButton>("Container/Down/Jump/BG").onClick.Add(new EventDelegate(OnJumpClick));
            t.GetComponent <UIEventTrigger>("Container/Down/BlurBG").onClick.Add(new EventDelegate(OnClick));

            m_Instance = this;
        }
Esempio n. 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;
        }
Esempio n. 3
0
 public override void OnDestroy()
 {
     m_Instance = null;
 }