Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
    public static void HideJoyStick(GameObject target)
    {
        ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>();

        if (mgr == null)
        {
            LogicSystem.GfxLog("HideJoyStick control miss!");
            return;
        }
        mgr.HideJoyStick();
    }
Exemplo n.º 3
0
    public static SkillAnimInfo GetDefaultAnimInfo(GameObject target)
    {
        ShooterSkillManager mgr = target.GetComponent <ShooterSkillManager>();

        if (mgr == null)
        {
            LogicSystem.GfxLog("GetDefaultAnimInfo control miss!");
            return(null);
        }
        return(mgr.DefaultAnimInfo);
    }
Exemplo n.º 4
0
    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);
    }
Exemplo n.º 5
0
    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);
    }
Exemplo n.º 6
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());
    }
Exemplo n.º 7
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);
        }
    }