Player, player movement, camera control
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BuildManager : MonoBehaviour
|
||||
{
|
||||
public GameObject WebGLCanvas;
|
||||
public GameObject WarningPanel;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
#if UNITY_WEBGL && !UNITY_EDITOR
|
||||
WebGLCanvas.SetActive(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if(Input.GetKeyDown(KeyCode.F1))
|
||||
{
|
||||
UnityEngine.SceneManagement.SceneManager.LoadScene(0);
|
||||
}
|
||||
|
||||
#if UNITY_WEBGL && !UNITY_EDITOR
|
||||
if(Input.GetKeyDown(KeyCode.H))
|
||||
{
|
||||
WarningPanel.SetActive(!WarningPanel.activeSelf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user