WXMC/.svn/pristine/1d/1de33411f9a1d45785ce162e1f2fc77ae749194c.svn-base

14 lines
284 B
Plaintext
Raw Permalink Normal View History

2024-12-04 16:18:46 +08:00
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);
}
}