13 lines
260 B
C#
13 lines
260 B
C#
using UnityEngine;
|
|
|
|
public class DemoScript : MonoBehaviour
|
|
{
|
|
//name of the scene you want to load
|
|
public string scene;
|
|
public Color loadToColor = Color.white;
|
|
|
|
public void GoFade()
|
|
{
|
|
Initiate.Fade(scene, loadToColor, 1.0f);
|
|
}
|
|
} |