Beispiel #1
0
    public int GetMaxSkillCoolTime()
    {
        SkillTable skill = GetActiveSkill();

        if (skill != null)
        {
            return(skill.GetSkillCoolTime(aSkillLv));
        }
        Util.DebugLog("something is wrong");
        return(9999);
    }
Beispiel #2
0
    private void SettingUI(SkillPack skillPack, bool noCooltime, bool noValue, int skillLv)
    {
        skillPack.skillLevelLabel.text = GetSkillLevel(skillLv);

        if (!noCooltime && !noValue)
        {
            skillPack.skillLevelObject.localPosition = new Vector3(0f, doubleLevelHeight, 0f);
            skillPack.cooltimeObject.gameObject.SetActive(true);
            skillPack.cooltimeObject.localPosition = new Vector3(0f, -doubleSkillHeight, 0f);
            skillPack.valueObject.gameObject.SetActive(true);
            skillPack.valueObject.localPosition = new Vector3(0f, doubleSkillHeight, 0f);
            skillPack.cooltimeLabel.text        = skillData.GetSkillCoolTime(skillLv).ToString();
            skillPack.valueLabel.text           = skillData.GetSkillValue(skillLv).ToString();
            skillPack.background.height         = doubleBackHeight;
        }
        else if (noCooltime)
        {
            skillPack.skillLevelObject.localPosition = new Vector3(0f, singleLevelHeight, 0f);
            skillPack.cooltimeObject.gameObject.SetActive(false);
            skillPack.valueObject.gameObject.SetActive(true);
            skillPack.valueObject.localPosition = new Vector3(0f, singleSkillHeight, 0f);
            skillPack.valueLabel.text           = skillData.GetSkillValue(skillLv).ToString();
            skillPack.background.height         = singleBackHeight;
        }
        else if (noValue)
        {
            skillPack.skillLevelObject.localPosition = new Vector3(0f, singleLevelHeight, 0f);
            skillPack.valueObject.gameObject.SetActive(false);
            skillPack.cooltimeObject.gameObject.SetActive(true);
            skillPack.cooltimeObject.localPosition = new Vector3(0f, singleSkillHeight, 0f);
            skillPack.cooltimeLabel.text           = skillData.GetSkillCoolTime(skillLv).ToString();
            skillPack.background.height            = singleBackHeight;
        }
        else
        {
            Debug.Log("something is wrong");
        }
    }