WXMC/proj/unity/Assets/Scripts/Utils/SceneTransition.cs
2024-12-04 16:18:46 +08:00

14 lines
284 B
C#

using UnityEngine;
public class SceneTransition : MonoBehaviour
{
public string scene = "<Insert scene name>";
public float duration = 1.0f;
public Color color = Color.black;
public void PerformTransition()
{
Transition.LoadLevel(scene, duration, color);
}
}