Ejemplo n.º 1
0
    public static void SetLinePointerDirect(Vector3 direct)
    {
        if (!SkillPointerManager._linePointer.IsValid <LinePointer>())
        {
            return;
        }
        LinePointer component = SkillPointerManager._linePointer.Component;

        if (!component.isShow)
        {
            return;
        }
        component.SetDirect(direct);
    }
Ejemplo n.º 2
0
    public static void ShowLinePointer(Units self, Vector3 direct, float width = 0f, float length = 0f)
    {
        if (SkillPointerManager._linePointer == null)
        {
            SkillPointerManager._linePointer = SkillPointerManager.CreateLinePointer(self);
        }
        LinePointer component = SkillPointerManager._linePointer.Component;

        if (!component.isShow)
        {
            component.Show();
        }
        component.followBehavior.isActive = true;
        if (width != 0f && length != 0f)
        {
            component.SetEffectRange(width, length);
        }
        component.SetDirect(direct);
    }