コード例 #1
0
    public bool IsGameOver(CommonData.NOTE_LINE line)
    {
        if (SkillManager.Instance.GetGameSkill(SkillManager.SKILL_TYPE.DAMAGE_SHIELD_TIME) != null)
        {
            return(false);
        }
        else if (SkillManager.Instance.GetGameSkill(SkillManager.SKILL_TYPE.DAMAGE_SHIELD_COUNT) != null)
        {
            var skill = SkillManager.Instance.GetGameSkill(SkillManager.SKILL_TYPE.DAMAGE_SHIELD_COUNT) as GameSkill_DamageShieldCount;

            if (skill.CharShield())
            {
                mGameUIPage.RefreshShieldItemUI();
                mDoorSystem.ShowSkillEffect_Shield(line);
                SetDoorState(line, Door.DOOR_STATE.OPEN);
                return(false);
            }
        }
        else if (SkillManager.Instance.GetGameSkill(SkillManager.SKILL_TYPE.RESURRECTION) != null)
        {
            var skill = SkillManager.Instance.GetGameSkill(SkillManager.SKILL_TYPE.RESURRECTION) as GameSkill_Resurrection;

            if (skill.IsResurrection())
            {
                GameRevival(true);
                return(false);
            }
        }

        return(true);
    }