Added scene transitions

This commit is contained in:
2026-01-23 00:55:26 +00:00
parent e5996382e8
commit 5f5f4da894
8 changed files with 262 additions and 206 deletions

View File

@@ -3,7 +3,6 @@ using Ext.B83.Unity.Attributes;
using InterfaceOff.MainMenu;
using InterfaceOff.WorldScene;
using UnityEngine;
using UnityEngine.SceneManagement;
using Random = UnityEngine.Random;
namespace InterfaceOff
@@ -119,8 +118,7 @@ namespace InterfaceOff
/* Else checks if it should reload the scene */
else if (Input.GetKey(KeyCode.Space))
{
int sceneIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(sceneIndex);
SceneController.ReloadScene();
}
}