示例#1
0
    public void UnitSkillIntroOverriden(FormationUnit unit, SkillArtInfo skillArtInfo, string mode)
    {
        if (unit.CurrentHalo != null)
        {
            unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = false;
        }

        unit.SetLayer(9);
        unit.SetSortingOrder(PartyFormationManager.ShowoffOrder + 6);
        if (unit.CombatInfo.IsImmobilized)
        {
            unit.SetDefendAnimation(false);
        }
        unit.SetPerformerSkillAnimationOverriden(skillArtInfo, mode, true);
    }
示例#2
0
    public override bool ApplyInstant(FormationUnit performer, FormationUnit target, Effect effect)
    {
        if (target == null)
        {
            return(false);
        }

        if (!target.CombatInfo.IsImmobilized)
        {
            target.CombatInfo.IsImmobilized = true;
            target.SetDefendAnimation(true);
            return(true);
        }
        return(false);
    }
    public void UnitSkillIntro(FormationUnit unit, string skillArtId)
    {
        if (unit.CurrentHalo != null)
        {
            unit.CurrentHalo.SkeletonAnimation.MeshRenderer.enabled = false;
        }

        unit.SetLayer(9);
        unit.SetSortingOrder(ShowoffOrder + 6);
        if (unit.CombatInfo.IsImmobilized)
        {
            unit.SetDefendAnimation(false);
        }
        unit.SetPerformerSkillAnimation(skillArtId, true);
    }
示例#4
0
    public void UnitDefendIntro(FormationUnit unit)
    {
        if (unit.CurrentHalo != null)
        {
            unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = false;
        }

        unit.SetLayer(9);
        if (unit.Character.RenderRankOverride == 0)
        {
            unit.SetSortingOrder(PartyFormationManager.ShowoffOrder + 4 - unit.Rank);
        }
        else
        {
            unit.SetSortingOrder(PartyFormationManager.ShowoffOrder + 4 - unit.Character.RenderRankOverride);
        }

        unit.SetDefendAnimation(true);
    }
示例#5
0
 public void UnitSkillOutroOverriden(FormationUnit unit, SkillArtInfo skillArtInfo, string mode)
 {
     unit.SetLayer(0);
     if (unit.Character.RenderRankOverride == 0)
     {
         unit.SetSortingOrder(PartyFormationManager.ShowoffOrder - unit.Rank);
     }
     else
     {
         unit.SetSortingOrder(PartyFormationManager.ShowoffOrder - unit.Character.RenderRankOverride);
     }
     unit.DeleteTarget(0.1f);
     unit.SetPerformerSkillAnimationOverriden(skillArtInfo, mode, false);
     if (unit.CombatInfo.IsImmobilized)
     {
         unit.SetDefendAnimation(true);
     }
     if (unit.CurrentHalo != null)
     {
         unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = true;
     }
 }
示例#6
0
 public void HeroResolveCheckOutro(FormationUnit unit, bool isHeroic)
 {
     unit.SetLayer(0);
     unit.SetSortingOrder(PartyFormationManager.ShowoffOrder - RaidSceneManager.RaidPanel.SelectedUnit.Rank);
     unit.DeleteTarget(0.1f);
     if (unit.CombatInfo.IsImmobilized)
     {
         unit.SetDefendAnimation(true);
     }
     if (isHeroic)
     {
         unit.SetHeroic(false);
     }
     else
     {
         unit.SetAfflicted(false);
     }
     if (unit.CurrentHalo != null)
     {
         unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = true;
     }
 }
示例#7
0
    public void HeroResolveCheckIntro(FormationUnit unit, bool isHeroic)
    {
        if (unit.CurrentHalo != null)
        {
            unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = false;
        }

        unit.SetLayer(9);
        unit.SetSortingOrder(PartyFormationManager.ShowoffOrder);
        if (unit.CombatInfo.IsImmobilized)
        {
            unit.SetDefendAnimation(false);
        }
        if (isHeroic)
        {
            unit.SetHeroic(true);
        }
        else
        {
            unit.SetAfflicted(true);
        }
    }
示例#8
0
    public void UnitDefendOutro(FormationUnit unit)
    {
        unit.SetLayer(0);
        if (unit.Character.RenderRankOverride == 0)
        {
            unit.SetSortingOrder(PartyFormationManager.ShowoffOrder - unit.Rank);
        }
        else
        {
            unit.SetSortingOrder(PartyFormationManager.ShowoffOrder - unit.Character.RenderRankOverride);
        }

        unit.DeleteTarget(0.1f);
        if (!unit.CombatInfo.IsImmobilized)
        {
            unit.SetDefendAnimation(false);
        }

        if (unit.CurrentHalo != null)
        {
            unit.CurrentHalo.skeletonAnimation.MeshRenderer.enabled = true;
        }
    }