Files
Cielonos/Assets/Shift - Complete Sci-Fi UI/Scripts/Panel/MainPanelButtonParent.cs
SoulliesOfficial 6d7ebc5825 Passion & UI
2026-06-12 17:11:39 -04:00

21 lines
691 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace Michsky.UI.Shift
{
public class MainPanelButtonParent : MonoBehaviour
{
private List<Animator> mainButtons = new List<Animator>();
void Awake()
{
foreach (Transform child in transform) { mainButtons.Add(child.GetComponent<Animator>()); }
for (int i = 0; i < mainButtons.Count; ++i) { mainButtons[i].Play("Normal to Dissolve"); }
Canvas _canvas = gameObject.AddComponent<Canvas>();
_canvas.overrideSorting = true;
_canvas.sortingOrder = 999;
gameObject.AddComponent<UnityEngine.UI.GraphicRaycaster>();
}
}
}