1
This commit is contained in:
parent
db5a31c73f
commit
beffee8a68
@ -521,12 +521,12 @@ namespace GameLogic
|
||||
var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName);
|
||||
eGo.transform.SetParent(item.Value.GetRect().transform);
|
||||
//eGo.transform.position = actor.GetRect().transform.position;
|
||||
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
||||
eGo.transform.localPosition = new Vector3(1500, 0, 0);
|
||||
eGo.transform.localScale = Vector3.one * 20;
|
||||
m_Buff1.m_EffectGo = eGo;
|
||||
|
||||
// 移动特效
|
||||
eGo.transform.DOLocalMoveX(-2000, 12f).OnComplete(async () =>
|
||||
eGo.transform.DOLocalMoveX(-2000, 16f).OnComplete(async () =>
|
||||
{
|
||||
GameObject.Destroy(eGo);
|
||||
});
|
||||
|
@ -93,12 +93,11 @@ namespace GameLogic
|
||||
m_VideoPlayer.Play();
|
||||
|
||||
|
||||
HideVideo();
|
||||
//HideVideo();
|
||||
}
|
||||
|
||||
private async void HideVideo()
|
||||
{
|
||||
await UniTask.Delay(2000);
|
||||
m_VideoPlayer.targetTexture.DiscardContents();
|
||||
GameModule.UI.CloseUI<UIVipItem_Old>();
|
||||
GameModule.UI.ShowUI<UIVipItem>(UserDatas);
|
||||
@ -106,9 +105,7 @@ namespace GameLogic
|
||||
|
||||
private void HiddenVideoPlay(VideoPlayer player)
|
||||
{
|
||||
// m_VideoPlayer.targetTexture.DiscardContents();
|
||||
// GameModule.UI.CloseUI<UIVipItem_Old>();
|
||||
// GameModule.UI.ShowUI<UIVipItem>(UserDatas);
|
||||
HideVideo();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user