Partiially working Timeslot-change and Heat Reciever on Targets
This commit is contained in:
@@ -10,10 +10,12 @@ public class ReplaySceneLoader : MonoBehaviour
|
||||
private int currentScene;
|
||||
public void LoadSceneAdditive(int sceneIndex)
|
||||
{
|
||||
sceneIndex += 1;
|
||||
if(SceneManager.loadedSceneCount > 1)
|
||||
{
|
||||
SceneManager.UnloadSceneAsync(currentScene);
|
||||
}
|
||||
//if (sceneIndex == 0) return;
|
||||
SceneManager.LoadSceneAsync(sceneIndex, LoadSceneMode.Additive);
|
||||
currentScene = sceneIndex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user