Пример #1
0
    // child should override this function
    public override bool StopSkill(SkillNode node)
    {
        IShooterSkill ss = m_SkillManager.GetCurPlaySkill();

        if (ss != null)
        {
            ss.StopSkill();
        }
        return(true);
    }
Пример #2
0
    public static IShooterSkill GetCurSkill(GameObject target)
    {
        ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>();

        if (mgr == null)
        {
            LogicSystem.GfxLog("GetCurSkill skill manager miss!");
            return(null);
        }
        return(mgr.GetCurPlaySkill());
    }