Example #1
0
    public static void ResetTarget(GameObject target)
    {
        SkillTargetControl control = target.GetComponent <SkillTargetControl>();

        if (control == null)
        {
            LogicSystem.GfxLog("ResetTarget control miss!");
            return;
        }
        control.ResetTarget();
    }
Example #2
0
    public static GameObject GetCurTarget(GameObject target)
    {
        SkillTargetControl control = target.GetComponent <SkillTargetControl>();

        if (control == null)
        {
            LogicSystem.GfxLog("GetCurTarget control miss!");
            return(null);
        }
        return(control.GetCurTarget());
    }
Example #3
0
    public static bool GetCurTargetPos(GameObject target, out Vector3 targetPos)
    {
        targetPos = Vector3.zero;
        SkillTargetControl control = target.GetComponent <SkillTargetControl>();

        if (control == null)
        {
            LogicSystem.GfxLog("GetCurTargetPos control miss!");
            return(false);
        }
        return(control.GetCurTargetPos(out targetPos));
    }
Example #4
0
    public static void RecordTarget(GameObject target, GameObject target2)
    {
        SkillTargetControl control = target.GetComponent <SkillTargetControl>();

        if (control == null)
        {
            LogicSystem.GfxLog("RecordTarget control miss!");
            return;
        }

        if (TriggerImpl.GetCharacterCamp(target2) != 0)
        {
            control.RecordTarget(target2);
        }
    }