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); } }
public void ChangeSkillByCategory(SkillCategory category, int skillId) { ShooterControlHandler control = (ShooterControlHandler)m_ShooterSkillController; control.ChangeSkillByCategory(category, m_Skills, skillId); }