Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class UIControllSwitcher : MonoBehaviour
- {
- [SerializeField] private GameObject _playerCotrollButtons;
- [SerializeField] private GameObject _carCotrollButtons;
- public void OnEnterCar()
- {
- _playerCotrollButtons.SetActive(false);
- _carCotrollButtons.SetActive(true);
- }
- public void OnExitCar()
- {
- _playerCotrollButtons.SetActive(true);
- _carCotrollButtons.SetActive(false);
- }
- }
Add Comment
Please, Sign In to add comment