using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class AnimeMenuSupport : MonoBehaviour { public static AnimeMenuSupport instance; public ClassControl classControl; private void Awake() { instance = this; } public void EnterClass(ClassControl control, Color colorChange) { StepsShow_Control.colorToShow = colorChange; GameObject.Find("ImgChangeScene").GetComponent().color = colorChange; classControl = control; GetComponent().SetTrigger("enterClass"); } public void ChangeScene() { classControl.ChangeScene(); } public void ExcludeFirstObject() { GameObject objTodestroy = GameObject.Find("HideText"); Destroy(objTodestroy); } }