1
This commit is contained in:
parent
8a73bcf68f
commit
0b0fe97a1e
@ -280,7 +280,7 @@ namespace GameLogic
|
||||
|
||||
// 创建一个玩家头像出来
|
||||
UIPlayerHeadItem actorHItem = CreateWidgetByPrefab<UIPlayerHeadItem>(m_itemHeadItem, m_rectHeadRt, true);
|
||||
actorHItem.OnInit(unitPlayerData,true);
|
||||
actorHItem.OnInit(unitPlayerData, true);
|
||||
|
||||
actorHItem.transform.SetParent(m_rectCar.transform);
|
||||
actorHItem.transform.localPosition = new Vector3(-1500, 0, 0);
|
||||
@ -328,7 +328,7 @@ namespace GameLogic
|
||||
var eGo = GameModule.Resource.LoadGameObject("HeShang");
|
||||
eGo.transform.SetParent(m_rectCar.transform);
|
||||
eGo.transform.localPosition = new Vector3(-1500, 0, 0);
|
||||
//eGo.transform.localScale = Vector3.one * 0.7f;
|
||||
eGo.transform.localScale = Vector3.one;
|
||||
eGo.gameObject.SetActive(true);
|
||||
eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () =>
|
||||
{
|
||||
@ -473,7 +473,7 @@ namespace GameLogic
|
||||
});
|
||||
|
||||
await UniTask.Delay(1500); // 等待特效播放完毕
|
||||
|
||||
|
||||
// 给进度条一个缩减回弹效果
|
||||
float originalFill = m_CurrentFillAmount;
|
||||
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.4f); // 缩到原值-0.4,最小0.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user