Exemplo n.º 1
0
    protected override void ShowHeroPuGong()
    {
        //GameObject effect = Instantiate(puGongEffect.gameObject) as GameObject;
        //effect.transform.position = m_pariSystem.transform.position;
        //effect.SetActive(true);
        //GameObject.Destroy(effect, 8);
        int sign = 0;

        if (target == null)
        {
            return;
        }
        Vector2 targetVec = target.transform.position - transform.position;

        if (targetVec.x > 0)
        {
            sign = 1;
        }
        else
        {
            sign = -1;
        }

        puGong.Show(shotPoint, bulletParent, target.transform, sign);
        m_Aniamtor.SetBool("PuGong", false);
    }
Exemplo n.º 2
0
    //public string GetUseSkillAnmimatorName()
    //{
    //    if (!skillOne.isCold)
    //    {
    //        return skillOne.animatorName;
    //    }

    //    return puGong.animatorName;
    //}

    //public void ShowSkill(Transform shotPoint, Transform parent,string name,int sign = 1,Transform target = null)
    //{
    //    for (int i = 0; i < SkillList.Count; i++)
    //    {
    //        if (SkillList[i].animatorName == name)
    //        {
    //            SkillList[i].Show(shotPoint, parent, target,sign);
    //            SkillList[i].isCold = true;
    //        }
    //    }
    //}


    public void ShowPuGong(Transform shotPoint, Transform parent, string name, int sign = 1, Transform target = null)
    {
        puGong.Show(shotPoint, parent, target, sign);
    }