2022-07-26 00:00:56 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
|
|
|
public class DebugHelper : MonoBehaviour
|
|
|
|
{
|
2022-07-30 00:47:44 +08:00
|
|
|
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
ObstacleManager.Instance.StartCreatObstacle();
|
|
|
|
}
|
2022-07-26 00:00:56 +08:00
|
|
|
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
// 按下R重启场景
|
|
|
|
if(Input.GetKeyDown(KeyCode.R))
|
|
|
|
{
|
|
|
|
Debug.Log("R");
|
|
|
|
UnityEngine.SceneManagement.SceneManager.LoadScene(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|