角色死亡
This commit is contained in:
@@ -19,6 +19,7 @@ namespace Continentis.MainGame.UI
|
||||
public CustomCardSelectionInterface customCardSelector;
|
||||
public CombatResourcesDisplayer combatResourcesDisplayer;
|
||||
public ActionOrderDisplayer actionOrderDisplayer;
|
||||
public RoundHint roundHint;
|
||||
public Button endActionButton;
|
||||
|
||||
protected override void Awake()
|
||||
|
||||
38
Assets/Scripts/MainGame/UI/CombatMainPage/RoundHint.cs
Normal file
38
Assets/Scripts/MainGame/UI/CombatMainPage/RoundHint.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using DG.Tweening;
|
||||
using I2.Loc;
|
||||
using SLSFramework.General;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.MainGame.UI
|
||||
{
|
||||
public class RoundHint : MonoBehaviour
|
||||
{
|
||||
public TMP_Text hintText;
|
||||
public LocalizationParamsManager locParams;
|
||||
private Sequence textAnimationSeq;
|
||||
|
||||
public void PlayRoundHint(int round)
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
|
||||
locParams.SetParameterValue("Round", round.ToString());
|
||||
hintText.text = "GameUI/Round_Hint".Localize(hintText.gameObject);
|
||||
|
||||
|
||||
Material textMat = hintText.fontMaterial;
|
||||
|
||||
float fadeInDuration = 1f;
|
||||
float holdDuration = 1f;
|
||||
float fadeOutDuration = 0.5f;
|
||||
|
||||
textAnimationSeq?.Kill();
|
||||
textAnimationSeq = DOTween.Sequence();
|
||||
textAnimationSeq.Append(textMat.DOFloat(1f, "_FullGlowDissolveFade", fadeInDuration).From(0f));
|
||||
textAnimationSeq.AppendInterval(holdDuration);
|
||||
textAnimationSeq.Append(textMat.DOFloat(0f, "_FullDistortionFade", fadeOutDuration).From(1f));
|
||||
textAnimationSeq.OnComplete(() => { gameObject.SetActive(false); });
|
||||
textAnimationSeq.Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68138f41a2b8c2644ab4773a6db99b54
|
||||
Reference in New Issue
Block a user