Ejemplo n.º 1
0
    //点击技能触发
    public void toSkill()
    {
        btnGameObject = EventSystem.current.currentSelectedGameObject;
        int skillID = int.Parse(btnGameObject.name);

        magic.LclickS(skillID);
    }
Ejemplo n.º 2
0
    //点击技能触发
    public void toSkill()
    {
        //btnGameObject = EventSystem.current.currentSelectedGameObject;

        int skillID = int.Parse(skillName);

        if (isDrop)
        {
            magic.setSkill(magic.skillTool.getSkill(sk), skillID);
            foreach (GameObject go in skillList)
            {
                go.GetComponent <Image>().color = Color.gray;
            }
            showState.GetComponent <Button>().interactable = false;
            skillclose();
            GameObject.Find("skill").SetActive(false);
            GameObject.Find("skill (1)").SetActive(false);
            drop.SetActive(false);
            isDrop = false;
            overCount--;
        }
        else
        {
            magic.LclickS(skillID);
            showPanel.transform.localScale = new Vector3(0, 0, 0);
        }
    }