public void SetPointEnterUI(int skillIndex, int skillLevel, int classIndex)
    {
        SkillBasicData skillData = SkillManager.instance.SkillData.GetSkill(classIndex, skillIndex + 1);

        if (!mouseOverUI.IsActive())
        {
            mouseOverUI.gameObject.transform.parent.gameObject.SetActive(true);
        }
        else
        {
            skillData = null;
            skillData = SkillManager.instance.SkillData.GetSkill(classIndex, skillIndex + 1);
        }
        mouseOverUI.transform.parent.transform.localPosition = new Vector2(skillUI[skillIndex].transform.localPosition.x + mouseOverUI_xPos, mouseOverUI_yPos);
        mouseOverUI.text = "스킬이름: " + skillData.SkillName + "  " + "쿨타임: " + skillData.SkillCoolTime.ToString() + "초" + "\n" + skillData.SkillBasicExplanation + "\n" + skillData.GetSkillData(skillLevel).SkillExplanation;
    }
Exemple #2
0
    public void SkillInfoEnter(int skillIndex)
    {
        for (int i = 0; i < skillAddIcon.Length; i++)
        {
            if (skillSelectImage[i].IsActive())
            {
                skillSelectImage[i].gameObject.SetActive(false);
            }
        }
        skillSelectImage[skillIndex].gameObject.SetActive(true);
        mySkillInfo.transform.parent.gameObject.SetActive(true);
        mySkillInfo.transform.parent.position  = skillAddIcon[skillIndex].transform.position;
        mySkillInfo.transform.parent.position += new Vector3(120f, 35f, 0);
        currentSkill = skillIndex;
        SkillBasicData skillData = SkillManager.Instance.SkillData.GetSkill((int)GameManager.Instance.CharacterStatus.HClass, skillIndex + 1);  // 고쳐야함

        mySkillInfo.text = "스킬이름: " + skillData.SkillName + "  " + "쿨타임: " + skillData.SkillCoolTime.ToString() + "초" + "\n" + skillData.SkillBasicExplanation + "\n" + skillData.GetSkillData(1).SkillExplanation;
    }