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