using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
//公会讨伐-其他玩家 攻击表现
|
public class GuildBossOtherPlayerAttack : MonoBehaviour
|
{
|
[SerializeField] Image angerAtkImg;
|
[SerializeField] Text hurtValueText;
|
[SerializeField] Text nameText;
|
[SerializeField] UIEffectPlayer atkEffect;
|
// [SerializeField] Transform atkValueRect;
|
[SerializeField] ScaleTween scaleTween;
|
[SerializeField] UIAlphaTween uiAlphaTween;
|
|
public void Display(TaofaAtkData taofaAtkData)
|
{
|
angerAtkImg.SetActive(taofaAtkData.atkType == 1);
|
var data = GuildBossManager.Instance.GetMemberData(taofaAtkData.playerID);
|
nameText.text = data == null ? "" : data.Name;
|
hurtValueText.text = BattleUtility.DisplayDamageNum(taofaAtkData.hurt, 2);
|
atkEffect.Play();
|
scaleTween.Play();
|
uiAlphaTween.Play();
|
|
}
|
|
public void Hide()
|
{
|
uiAlphaTween.SetEndState();
|
}
|
|
}
|