Skip to content

Commit ed768e9

Browse files
committed
testing new additive scene manager system
1 parent 8cb1a39 commit ed768e9

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
using UnityEngine.SceneManagement;
5+
6+
[System.Serializable]
7+
public class AdditiveSceneRef {
8+
public string scene_name;
9+
public Object scene_ref;
10+
}
11+
12+
public class AdditiveSceneManager : MonoBehaviour
13+
{
14+
15+
// Global instance
16+
public static AdditiveSceneManager Instance;
17+
18+
// List of scenes
19+
public AdditiveSceneRef[] scenes;
20+
21+
// Adictionary of scenes based on `scenes`; generated
22+
23+
24+
// Awake
25+
private void Awake() {
26+
Instance = this;
27+
}
28+
29+
// Add Scene from `scenes` to scene
30+
public void AddScene(string quuery) {
31+
32+
}
33+
34+
35+
}

0 commit comments

Comments
 (0)