private void StartDieFadeOut() { mMonsterPro.hideUI(); Transform body = this.transform.Find("Body"); if (body != null) { SkinnedMeshRenderer tRender = body.GetComponent <SkinnedMeshRenderer>(); tRender.material = mAlphaMai; } StartCoroutine(dieFadeOutIEn(dieFadeOutEnd)); }
private void dieFadeOutEnd() { mMonsterPro.hideUI(); this.gameObject.SetActive(false); if (this.gameObject.layer == csLayRole) { stageMgr.stage().roleLose(); } else { stageMgr.stage().addClearMonster(); } }
//恢复玩家为不攻击状态 public void setRoleIdle() { mainRoleState.updataRoleControl(0, 0, false, false); //roleProperty mainPro = roleInstance.transform.GetComponent<roleProperty>(); mainPro.hideUI(); }
private void hideRoleUI() { roleProperty mainPro = App.Game.character.roleInstance.transform.GetComponent <roleProperty>(); mainPro.hideUI(); }