改动与优化
This commit is contained in:
@@ -77,6 +77,7 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
GameObject instance = Instantiate(gameHistoryPrefab, gameHistoryParent);
|
||||
instance.transform.localScale *= prefabScaleRatio;
|
||||
previewEntries.Add(instance);
|
||||
UI_OrderedEntryAnimator.PlaySingle(instance, i, 0.18f, 0.015f, -14f, 0.97f, true);
|
||||
ghPrefab controller = instance.GetComponent<ghPrefab>();
|
||||
if (controller == null)
|
||||
{
|
||||
@@ -92,6 +93,7 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
if (more_gameHistory != null)
|
||||
{
|
||||
more_gameHistory.SetActive(true);
|
||||
UI_OrderedEntryAnimator.PlayRefresh(more_gameHistory, 0.18f, -10f, 0.985f, true);
|
||||
}
|
||||
|
||||
if (dGameHistoryParent == null || gameHistoryPrefab == null)
|
||||
@@ -118,6 +120,7 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
|
||||
GameObject instance = Instantiate(gameHistoryPrefab, dGameHistoryParent);
|
||||
detailEntries.Add(instance);
|
||||
UI_OrderedEntryAnimator.PlaySingle(instance, i, 0.16f, 0.012f, -12f, 0.97f, true);
|
||||
|
||||
ghPrefab controller = instance.GetComponent<ghPrefab>();
|
||||
if (controller == null)
|
||||
@@ -131,11 +134,20 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
|
||||
private void CloseDetailedHistory()
|
||||
{
|
||||
ClearEntries(detailEntries, dGameHistoryParent);
|
||||
if (more_gameHistory != null)
|
||||
{
|
||||
more_gameHistory.SetActive(false);
|
||||
UI_PanelExitUtility.PlayExitThen(more_gameHistory, () =>
|
||||
{
|
||||
ClearEntries(detailEntries, dGameHistoryParent);
|
||||
if (more_gameHistory != null)
|
||||
{
|
||||
more_gameHistory.SetActive(false);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
ClearEntries(detailEntries, dGameHistoryParent);
|
||||
}
|
||||
|
||||
private SongData FindSongById(int songId)
|
||||
|
||||
Reference in New Issue
Block a user