-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevelManager.cs
More file actions
41 lines (30 loc) · 777 Bytes
/
LevelManager.cs
File metadata and controls
41 lines (30 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
using UnityEngine.SceneManagement;
public class LevelManager : MonoBehaviour
{
public static LevelManager instance;
public Transform respawnPoint;
public GameObject playerPrefab;
public GameObject Beast;
public CinemachineVirtualCameraBase cam;
private void Awake()
{
instance = this;
}
public void Respawn()
{
Scene scene = SceneManager.GetActiveScene(); SceneManager.LoadScene(scene.name);
//cam.Follow = player.transform;
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}