using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class MainMenuManager : MonoBehaviour { [SerializeField] private TMP_Text title; [SerializeField] private List textList = new(); [SerializeField] private float dilateSpeed = 0.1f; [SerializeField] private Animator cover; private readonly string component = "_FaceDilate"; private float dilate = -1; private readonly List dilates = new(); private float initDilate; private readonly List initDilates = new(); private bool transitioning; // Start is called before the first frame update private void Start() { //initDilate = title.fontSharedMaterials[0].GetFloat(component); initDilate = title.fontMaterials[0].GetFloat(component); foreach (var text in textList) { initDilates.Add(text.fontMaterials[0].GetFloat(component)); dilates.Add(-1f); } textList[0].GetComponent