예제 #1
0
 /// <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));
     }
 }
예제 #2
0
        /// <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();
 }
예제 #4
0
 /// <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;
 }