public ShooterControlHandler(ShooterSkillManager skillmanager, List <IShooterSkill> skills) { DashFire.LogicSystem.EventChannelForGfx.Subscribe <string>("ge_cast_skill", "game", OnPushStrSkill); DashFire.LogicSystem.EventChannelForGfx.Subscribe <int>("ge_unlock_skill", "skill", base.UnlockSkill); m_SkillManager = skillmanager; Init(skills); }
public static void HideJoyStick(GameObject target) { ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>(); if (mgr == null) { LogicSystem.GfxLog("HideJoyStick control miss!"); return; } mgr.HideJoyStick(); }
public static SkillAnimInfo GetDefaultAnimInfo(GameObject target) { ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>(); if (mgr == null) { LogicSystem.GfxLog("GetDefaultAnimInfo control miss!"); return(null); } return(mgr.DefaultAnimInfo); }
public static void SetFacePos(GameObject target, Vector3 targetPos, MathRange YRotateRange) { ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>(); if (mgr == null) { LogicSystem.GfxLog("SetFacePos skill manager miss!"); return; } mgr.SetFacePos(targetPos, YRotateRange); }
public static void ChangeSkillByCategory(GameObject target, SkillCategory category, int skillId) { ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>(); if (mgr == null) { LogicSystem.GfxLog("GetCurSkill skill manager miss!"); return; } mgr.ChangeSkillByCategory(category, skillId); }
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()); }
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); } }