remify minigame CatsRhythmGame
This commit is contained in:
22
Assets/GUIPackCartoon/Demo/Scripts/SceneTransition.cs
Normal file
22
Assets/GUIPackCartoon/Demo/Scripts/SceneTransition.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2015 ricimi - 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 Ricimi
|
||||
{
|
||||
// This class is responsible for loading the next scene in a transition (the core of
|
||||
// this work is performed in the Transition class, though).
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user