mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-13 04:45:15 -05:00
Added Additional logic to controls menu
-players can no longer leave with same keys and if they do they will be set to default -Added some additional changes to animator
This commit is contained in:
24
Assets/Scripts/UI/Controls/WarningPop.cs
Normal file
24
Assets/Scripts/UI/Controls/WarningPop.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
|
||||
public class WarningPop : MonoBehaviour
|
||||
{
|
||||
public GameObject warningBox;
|
||||
// Start is called before the first frame update
|
||||
|
||||
//they no want defautls
|
||||
public void cancel()
|
||||
{
|
||||
warningBox.SetActive(false);
|
||||
}
|
||||
public void setDefaultAndContinue()
|
||||
{
|
||||
//set default
|
||||
this.GetComponent<RebindManager>().setAllControlsToDefaults();
|
||||
warningBox.SetActive(false);
|
||||
SceneManager.LoadScene("Options");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user