Example #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);
    }
Example #2
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;
     }
 }