private void doShowPointer(Skill skill, Vector3 targetPos)
 {
     SkillPointerManager.CreateSkillPointer(this.self, skill.data.skillId, skill.distance);
     if (this.self.mSkillPointer.IsValid <SkillPointer>())
     {
         this.self.mSkillPointer.Component.ChangeTra(targetPos);
     }
     this.self.ShowSkillPointer();
 }
Exemplo n.º 2
0
    public static void ShowCirclePointer(Units self, float inAttackRange, float inEffectRange)
    {
        if (SkillPointerManager._circlePointer == null)
        {
            SkillPointerManager._circlePointer = SkillPointerManager.CreateCirclePointer(self);
        }
        CirclePointer component = SkillPointerManager._circlePointer.Component;

        if (!component.isShow)
        {
            component.Show();
        }
        component.followBehavior.isActive = true;
        component.SetEffectRange(inEffectRange);
        component.SetAttackRange(inAttackRange);
    }
Exemplo n.º 3
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);
    }