cull(engine-cleanup): pass-8 phase-2 cascade round 3 after MyPageItemHome stub
This commit is contained in:
@@ -15,35 +15,4 @@ public class MyPageCardPanelAnimation : MonoBehaviour
|
||||
private UIPanel[] _panel;
|
||||
|
||||
private Vector3[] _defaultPosition;
|
||||
|
||||
public void UpdateCardPanelDefaultPosition(Vector3[] newPosition)
|
||||
{
|
||||
_defaultPosition = newPosition;
|
||||
}
|
||||
|
||||
private void InitializePanel()
|
||||
{
|
||||
if (_panel == null)
|
||||
{
|
||||
_panel = new UIPanel[_cardPanel.Length];
|
||||
_defaultPosition = new Vector3[_cardPanel.Length];
|
||||
for (int i = 0; i < _cardPanel.Length; i++)
|
||||
{
|
||||
GameObject gameObject = _cardPanel[i];
|
||||
_panel[i] = gameObject.GetComponent<UIPanel>();
|
||||
_defaultPosition[i] = gameObject.transform.localPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitRandom()
|
||||
{
|
||||
_randomDir = new int[_cardPanel.Length];
|
||||
_randomTimer = new float[_cardPanel.Length];
|
||||
for (int i = 0; i < _cardPanel.Length; i++)
|
||||
{
|
||||
_randomDir[i] = (((double)Random.value > 0.5) ? 1 : (-1));
|
||||
_randomTimer[i] = Random.Range(-0.3f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user