Format code

This commit is contained in:
2022-08-15 13:20:14 -07:00
parent 9177aafb06
commit 22d3dff726
6 changed files with 8 additions and 23 deletions

View File

@@ -1,21 +1,8 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace Scampz.GameJam namespace Scampz.GameJam
{ {
public class AudioPlayer : MonoBehaviour public class AudioPlayer : MonoBehaviour
{ {
// Start is called before the first frame update }
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
} }

View File

@@ -8,7 +8,7 @@ namespace Scampz.GameJam.Assets.Scripts
public class BGMManager : MonoBehaviour public class BGMManager : MonoBehaviour
{ {
public static BGMManager Instance { get; private set; } public static BGMManager Instance { get; private set; }
[SerializeField] [SerializeField]
private AudioSource audioSource; private AudioSource audioSource;

View File

@@ -23,7 +23,7 @@ namespace Scampz.GameJam
private AudioClip GetAudioClip() private AudioClip GetAudioClip()
{ {
var terrainType = TerrainTypeFinder.Find(); var terrainType = TerrainTypeFinder.Find();
switch(terrainType) switch (terrainType)
{ {
case TerrainType.Grass: case TerrainType.Grass:
return grassStep; return grassStep;

View File

@@ -1,4 +1,3 @@
using Scampz.GameJam.Assets.Scripts;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;

View File

@@ -1,14 +1,13 @@
using Scampz.GameJam.Assets.Scripts;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
namespace Scampz.GameJam namespace Scampz.GameJam.Assets.Scripts
{ {
public class SingletonManager : MonoBehaviour public class SingletonManager : MonoBehaviour
{ {
void Start() void Start()
{ {
GameManager.Instance.LoadScene(SceneNames.TempleA, LoadSceneMode.Additive); GameManager.Instance.LoadScene(SceneNames.TempleA, LoadSceneMode.Single);
} }
} }
} }

View File

@@ -11,7 +11,7 @@ namespace Scampz.GameJam.Assets.Scripts
{ {
var sceneCount = SceneManager.sceneCount; var sceneCount = SceneManager.sceneCount;
var scenes = new List<Scene>(); var scenes = new List<Scene>();
for (var i = 0; i < sceneCount; ++i) for (var i = 0; i < sceneCount; ++i)
scenes.Add(SceneManager.GetSceneAt(i)); scenes.Add(SceneManager.GetSceneAt(i));