Ejemplo n.º 1
0
 public override void init()
 {
     this.ig_blood        = base.transform.FindChild("blood").GetComponent <Image>();
     this.m_ani           = base.transform.GetComponent <Animator>();
     this.assassin_fx     = base.transform.FindChild("FX_yingsheng").gameObject;
     a3_lowblood.instance = this;
     base.gameObject.SetActive(false);
     this.assassin_fx.SetActive(false);
     this.ig_blood.gameObject.SetActive(false);
 }
Ejemplo n.º 2
0
        public override void init()
        {
            inText();
            ig_blood    = transform.FindChild("blood").GetComponent <Image>();
            m_ani       = transform.GetComponent <Animator>();
            assassin_fx = transform.FindChild("FX_yingsheng").gameObject;
            net_link    = transform.FindChild("net_link").gameObject;

            instance = this;
            gameObject.SetActive(false);
            assassin_fx.SetActive(false);
            ig_blood.gameObject.SetActive(false);
            net_link.gameObject.SetActive(false);

            //网络连接提示
            SXML xml = XMLMgr.instance.GetSXML("comm.wifi_notice");

            link_notice_time  = xml.getInt("time_notice");
            link_lose_time    = xml.getInt("time_lose");
            link_replace_time = xml.getInt("time_replace");

            CancelInvoke("ongetPing");
            InvokeRepeating("ongetPing", 0, link_replace_time);
        }