/// <summary> /// Function that adds a hitsplat to the portrait /// </summary> /// <param name="details">The details needed to customize the splat.</param> private void AddHitsplat(SplatDetails details) { if (PortraitView != null && PortraitView.isActiveAndEnabled) { PortraitView.StartCoroutine(SFX.DoHitSplat(Character, details)); } }
/// <summary> /// Initializes a new instance of the <see cref="CharacterPresenter"/> class. /// </summary> /// <param name="character">The character associated with the portrait.</param> /// <param name="portraitView">The portrait associated with the character.</param> public CharacterPresenter(Character character, PortraitView portraitView) { this.character = character; this.portrait = portraitView; while (this.character.Effects.Count > 0) { ParentToEffects(character.Effects.Dequeue()); } }
private void _removeAllViews() { PortraitView.RemoveFromSuperview(); LandscapeLeftView.RemoveFromSuperview(); LandscapeRightView.RemoveFromSuperview(); }
/// <summary> /// Initializes a new instance of the <see cref="CharacterPresenter"/> class. /// </summary> /// <param name="character">The character associated with the portrait.</param> /// <param name="portraitView">The portrait associated with the character.</param> public CharacterPresenter(Character character, PortraitView portraitView) { this.Character = character; this.PortraitView = portraitView; }