예제 #1
0
        public override void Awake()
        {
            base.Awake();

            var t    = mDMono.transform;
            var root = t.parent.parent.parent;

            isOpen = false;

            BossAreaList = new List <GameObject>();
            BossAreaList.Add(t.gameObject);
            BossAreaList.Add(root.FindEx("Edge/Right/WorldBossRank/LTWorldBossRankView").gameObject);

            MainLandAreaList = new List <GameObject>();
            MainLandAreaList.Add(root.FindEx("Center/SpeedSnatch").gameObject);
            MainLandAreaList.Add(root.FindEx("Edge/TopLeftAnchor/TopLeft").gameObject);
            MainLandAreaList.Add(root.FindEx("Edge/Right/RightFuncPanel/Content").gameObject);
            MainLandAreaList.Add(root.FindEx("Edge/TopRightAnchor/TopRight/FuncList").gameObject);
            MainLandAreaList.Add(root.FindEx("Edge/TopRightAnchor/TopRight/FuncList2").gameObject);
            MainLandAreaList.Add(root.FindEx("Edge/TopRightAnchor/TopRight/Btn").gameObject);

            WorldBossRankUITran = root.GetComponent <Transform>("Edge/Right/WorldBossRank/LTWorldBossRankView/Rank");
            FlagAreaTran        = root.GetComponent <Transform>("Edge/TopRightAnchor/TopRight/FlagArea");

            Messenger.AddListener(Hotfix_LT.EventName.BossDieEvent, OnBossDieFunc);
            HideBossUI();

            m_Instance = this;
        }
예제 #2
0
 public override void OnDestroy()
 {
     m_Instance = null;
     Messenger.RemoveListener(Hotfix_LT.EventName.BossDieEvent, OnBossDieFunc);
 }