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