CapersProject/Assets/UltimateCleanGUIPack/Common/Scripts/Core/SceneTransition.cs
2024-06-04 03:26:03 +09:00

25 lines
809 B
C#

// Copyright (C) 2015-2021 gamevanilla - All rights reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement.
// A Copy of the Asset Store EULA is available at http://unity3d.com/company/legal/as_terms.
using UnityEngine;
namespace UltimateClean
{
/// <summary>
/// This component is responsible for loading the next scene in a transition
/// (note the core of this work is performed by the Transition component).
/// </summary>
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);
}
}
}