Resolve WES-99 "Cc refactor"
This commit is contained in:
15
Assets/Common/Scripts/BackButton.cs
Normal file
15
Assets/Common/Scripts/BackButton.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// Script managing the default 'back'-button action
|
||||
/// </summary>
|
||||
public class BackButton : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// The default 'back'-button action: go back to the previous scene
|
||||
/// </summary>
|
||||
public void Back()
|
||||
{
|
||||
SystemController.GetInstance().BackToPreviousScene();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user