In-game real time reward chart, free camera, result viewer and etc...
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.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user