14 lines
284 B
C#
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);
|
|
}
|
|
}
|