37 lines
775 B
C#
37 lines
775 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cute;
|
|
using UnityEngine;
|
|
|
|
public class MyPageItem : MonoBehaviour
|
|
{
|
|
|
|
[SerializeField]
|
|
private MyPageCardPanelAnimation _cardMove;
|
|
|
|
[SerializeField]
|
|
private MyPageCardPanel[] _cardPanelList;
|
|
|
|
private MyPageMenu _parent;
|
|
|
|
private bool cardAnimationInitialized;
|
|
|
|
protected MyPageCardPanelAnimation CardAnimation => _cardMove;
|
|
|
|
public bool IsEnableFooterCurrentMenu { get; set; }
|
|
|
|
protected void SaveCardPanelDefaultPosition()
|
|
{
|
|
int num = _cardPanelList.Length;
|
|
if (num > 0)
|
|
{
|
|
Vector3[] array = new Vector3[num];
|
|
for (int i = 0; i < num; i++)
|
|
{
|
|
array[i] = _cardPanelList[i].SavePosition();
|
|
}
|
|
CardAnimation.UpdateCardPanelDefaultPosition(array);
|
|
}
|
|
}
|
|
}
|