Пример #1
0
    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));
    }
Пример #2
0
    private void dieFadeOutEnd()
    {
        mMonsterPro.hideUI();
        this.gameObject.SetActive(false);

        if (this.gameObject.layer == csLayRole)
        {
            stageMgr.stage().roleLose();
        }
        else
        {
            stageMgr.stage().addClearMonster();
        }
    }
Пример #3
0
 //恢复玩家为不攻击状态
 public void setRoleIdle()
 {
     mainRoleState.updataRoleControl(0, 0, false, false);
     //roleProperty mainPro = roleInstance.transform.GetComponent<roleProperty>();
     mainPro.hideUI();
 }
Пример #4
0
    private void hideRoleUI()
    {
        roleProperty mainPro = App.Game.character.roleInstance.transform.GetComponent <roleProperty>();

        mainPro.hideUI();
    }