protected override void OnLoaded(float modelScale, int modelID) { base.OnLoaded(modelScale, modelID); MainObj.GetComponent <Rigidbody>().useGravity = !m_npcInfo.IsPush; MainObj.GetComponent <Rigidbody>().isKinematic = !m_npcInfo.IsPush; LoadedByChangeBodyElement(); //AddHPBar(); // 只有副本里的NPC才会显示血条 //UpdateHeadIcon(); // 头顶图标 //InitHeadWarnTip(); MainGame.Singleton.StartCoroutine(InitHeadWarnTip()); //test TestBossStamina(); MainGame.Singleton.StartCoroutine(Coroutine_LoadTestRange()); }
private void button1_Click(object sender, EventArgs e) { MainObj.SendeMailItem(PrepareMail.PrepareHOMail(TimeCheck.CheckHomeOfficeTime()), false); }
private void _read() { _main = new MainObj(m_io, this, m_root); }
private void _read() { _indicator = m_io.ReadBytes(2); _main = new MainObj(m_io, this, m_root); }
public void OnEndHO(Office.IRibbonControl control) { var mail = PrepareMail.PrepareHOMail(2); MainObj.SendeMailItem(mail, false); }
public void OnBeginHO(Office.IRibbonControl control) { var mail = PrepareMail.PrepareHOMail(1); MainObj.SendeMailItem(mail, true); }
public SlaveObj(MainObj parent) { this.owner = parent; }
public int GetFieldID(MainObj other) { return(other.slaves[0].GetFieldID(this.ID)); }