Exemplo n.º 1
0
        private void Start()
        {
            WdsyOpenDoor.instance = this;
            this.box = base.gameObject.GetComponent <BoxCollider>();
            bool flag = this.box == null;

            if (flag)
            {
                this.box = base.gameObject.AddComponent <BoxCollider>();
            }
            this.box.isTrigger    = true;
            base.gameObject.layer = EnumLayer.LM_PT;
            this.wall0            = base.gameObject.transform.parent.parent.FindChild("FX_common_door00");
            this.wall1            = base.gameObject.transform.parent.parent.FindChild("FX_common_door01");
            this.wall2            = base.gameObject.transform.parent.parent.FindChild("FX_common_door02");
            this.wall3            = base.gameObject.transform.parent.parent.FindChild("FX_common_door03");
            this.data             = SvrLevelConfig.instacne.get_level_data(108u);
            this.doorkill         = a3_counterpart.lvl;
            this.read();
            BaseProxy <TeamProxy> .getInstance().addEventListener(237u, new Action <GameEvent>(this.killNum));
        }
Exemplo n.º 2
0
        void Start()
        {
            instance = this;
            box      = gameObject.GetComponent <BoxCollider>();
            if (box == null)
            {
                box = gameObject.AddComponent <BoxCollider>();
            }
            box.isTrigger    = true;
            gameObject.layer = EnumLayer.LM_PT;
            wall0            = this.gameObject.transform.parent.parent.FindChild("FX_common_door00");
            wall1            = this.gameObject.transform.parent.parent.FindChild("FX_common_door01");
            wall2            = this.gameObject.transform.parent.parent.FindChild("FX_common_door02");
            wall3            = this.gameObject.transform.parent.parent.FindChild("FX_common_door03");
            data             = SvrLevelConfig.instacne.get_level_data(108);
            doorkill         = a3_counterpart.lvl;//副本难度
            read();



            TeamProxy.getInstance().addEventListener(PKG_NAME.S2C_LVL_PVPINFO_BOARD_RES, killNum);
        }