Implement scene transitions
This commit is contained in:
18
Assets/Common/Scripts/SettingsScreen.cs
Normal file
18
Assets/Common/Scripts/SettingsScreen.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
public class SettingsScreen : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// Reference to the scene playable director
|
||||
/// </summary>
|
||||
public PlayableDirector directorEnterFromMainMenu;
|
||||
|
||||
/// <summary>
|
||||
/// Start is called before the first frame update
|
||||
/// </summary>
|
||||
void Start()
|
||||
{
|
||||
directorEnterFromMainMenu.Play();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user