Finalized user manual and bug fixes

mainly added button/keyboard icon sprites
This commit is contained in:
djkellerman
2025-04-18 14:27:08 -04:00
parent 9578af346b
commit 38adb04d66
14 changed files with 1291 additions and 325 deletions

View File

@@ -21,20 +21,29 @@ public class HubManager : MonoBehaviour
}
else
{
Debug.Log("A HubManager already exists.");
Destroy(this.gameObject);
}
if (hubCamera.GetComponent<AudioListener>() == null)
{
hubCamera.AddComponent<AudioListener>();
}
hubCamera.SetActive(true);
MusicManager.Instance.StartPlaylist();
}
print("Game started");
}
public void LoadScene(string sceneName)
{
UnloadGameScene();
hubCamera.SetActive(false);
SceneManager.LoadScene(sceneName, LoadSceneMode.Additive);
var activeCamera = Camera.main;
if (activeCamera != null && activeCamera.GetComponent<AudioListener>() == null)
{
activeCamera.gameObject.AddComponent<AudioListener>();
}
MusicManager.Instance.StartPlaylist();
print("Loading scene: playing solmg" + sceneName);
print("Loading scene: " + sceneName);
}
public void UnloadGameScene()
@@ -44,11 +53,7 @@ public class HubManager : MonoBehaviour
{
SceneManager.UnloadSceneAsync(SceneManager.GetSceneAt(1));
}
catch
{
Debug.Log("No game scene to unload");
}
catch {}
ChangeGameButtonsInteractability(false);
}