• LevelReset.cs
  • /
  • /
  • /
  • /
1 using System;
2 using
UnityEngine;
3 using
UnityEngine.EventSystems;
4 using
UnityEngine.SceneManagement;
5
6 public
class LevelReset :MonoBehaviour , IPointerClickHandler
7 {
8     
public void OnPointerClick(PointerEventData data)
9     {
10         
// reload the scene
11         SceneManager.LoadScene(SceneManager.GetSceneAt(
0).path);
12     }
13
14
15     
private void Update()
16     {
17     }
18 }


Gõ tìm kiếm nhanh...