Added scene transitions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user