Esempio n. 1
0
    public static void ForceStartSkillById(GameObject target, SkillCategory category, Vector3 targetpos)
    {
        ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>();

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

        if (control != null)
        {
            control.ForceStartSkillById(category, targetpos);
        }
    }
Esempio n. 2
0
    public void ChangeSkillByCategory(SkillCategory category, int skillId)
    {
        ShooterControlHandler control = (ShooterControlHandler)m_ShooterSkillController;

        control.ChangeSkillByCategory(category, m_Skills, skillId);
    }