mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 01:34:22 -05:00
23 lines
506 B
C#
23 lines
506 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SwitchMenuControls : MonoBehaviour
|
|
{
|
|
public GameObject playerMenu;
|
|
public GameObject kingMenu;
|
|
// Update is called once per frame
|
|
public void enable()
|
|
{
|
|
if(playerMenu.active){
|
|
kingMenu.SetActive(true);
|
|
playerMenu.SetActive(false);
|
|
}
|
|
else{
|
|
kingMenu.SetActive(false);
|
|
playerMenu.SetActive(true);
|
|
}
|
|
|
|
}
|
|
}
|