Esempio n. 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));
     }
 }
Esempio n. 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();
 }
Esempio n. 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;
 }