ZoeAppClass/Assets/Scripts/Menu/AnimeMenuSupport.cs

34 lines
830 B
C#

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<Image>().color = colorChange;
classControl = control;
GetComponent<Animator>().SetTrigger("enterClass");
}
public void ChangeScene()
{
classControl.ChangeScene();
}
public void ExcludeFirstObject() {
GameObject objTodestroy = GameObject.Find("HideText");
Destroy(objTodestroy);
}
}