In-game real time reward chart, result viewer, free camera, kill bonus reward(not so good. set 0 to unuse it) Fix ray-sensor throw error when initialization issue. Fix ray-sensor info panel face to wrong position.
19 lines
334 B
C#
19 lines
334 B
C#
using UnityEngine;
|
|
|
|
public class ToggleGameObjectEnable : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private GameObject _go;
|
|
|
|
private bool _enabled = true;
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.H))
|
|
{
|
|
_enabled = !_enabled;
|
|
_go.SetActive(_enabled);
|
|
}
|
|
}
|
|
}
|