using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; using Steamworks; 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; [SerializeField] private Animator cameraAnimator; [SerializeField] private MainMenuSettingsManager settingsManager; [SerializeField] private Canvas creditsCanvas; private bool isAnimating = false; private bool isDown = false; private static MainMenuManager instance; public static MainMenuManager Instance { get { return instance; } } private void Awake() { instance = this; } // 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