修改任务书动画

This commit is contained in:
taosuqi 2024-08-29 09:37:39 +08:00
parent b15a843597
commit d965c009e1
5 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@ -112,7 +112,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 12, y: 12}
m_AnchoredPosition: {x: 531, y: 12}
m_SizeDelta: {x: 104, y: 32}
m_Pivot: {x: 0, y: 0}
--- !u!222 &2549887742247844894

View File

@ -284,7 +284,7 @@ RectTransform:
m_GameObject: {fileID: 3790556693274665484}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalScale: {x: 0.05, y: 0.05, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 556687135010115380}
@ -293,7 +293,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -222, y: -152}
m_AnchoredPosition: {x: -976, y: -896}
m_SizeDelta: {x: 396, y: 840}
m_Pivot: {x: 1, y: 1}
--- !u!222 &3790556693274665487

View File

@ -1,3 +1,4 @@
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -8,6 +9,7 @@ public class UI_ReceiveTaskPanel : BasePanel
private string triggerName;
public void Init(string triggerName)
{
GetBigger();
this.triggerName = triggerName;
}
protected override void OnClick(string btnName)
@ -24,4 +26,9 @@ public class UI_ReceiveTaskPanel : BasePanel
break;
}
}
void GetBigger()
{
GetControl<Image>("Image_Background").rectTransform.DOLocalMove(new Vector3(738, 388, 0), 2.5f);
GetControl<Image>("Image_Background").transform.DOScale(new Vector3(1, 1, 1), 2.5f);
}
}