剧情界面拉伸问题修复
parent
33260590a8
commit
662bba73d0
|
|
@ -7075,10 +7075,10 @@ RectTransform:
|
|||
- {fileID: 7896991221781629267}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 1920, y: 1080}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &8631018267622751437
|
||||
GameObject:
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ public class FightWinComponent: MonoBehaviour
|
|||
{
|
||||
//handle.Release();
|
||||
}
|
||||
|
||||
//_timelinePlayable.stopped -= OnPlayableStopped;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
@ -83,7 +85,9 @@ public class FightWinComponent: MonoBehaviour
|
|||
await _LoadModels();
|
||||
await _LoadTimeline();
|
||||
await UniTask.DelayFrame(1);
|
||||
_timelinePlayable.extrapolationMode = DirectorWrapMode.Hold;
|
||||
_timelinePlayable.Play();
|
||||
//_timelinePlayable.stopped += OnPlayableStopped;
|
||||
}
|
||||
|
||||
private void _OnPauseEvent()
|
||||
|
|
@ -306,6 +310,21 @@ public class FightWinComponent: MonoBehaviour
|
|||
return retAnimClips;
|
||||
}
|
||||
|
||||
private void OnPlayableStopped(PlayableDirector playable)
|
||||
{
|
||||
for (int i = 0; i < _objRoot.transform.childCount; i++)
|
||||
{
|
||||
var trans = _objRoot.transform.GetChild(i);
|
||||
if (trans.gameObject.name.Contains("P_S"))
|
||||
{
|
||||
var anim = trans.GetChild(0).GetComponent<Animator>();
|
||||
if (anim)
|
||||
{
|
||||
anim.Play("standready001");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#region API
|
||||
|
||||
public void SetData(List<uint> charIDList)
|
||||
|
|
|
|||
Loading…
Reference in New Issue