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;
namespace Scampz.GameJam
{
public class AudioPlayer : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
public class AudioPlayer : MonoBehaviour
{
}
}

View File

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

View File

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

View File

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

View File

@@ -1,14 +1,13 @@
using Scampz.GameJam.Assets.Scripts;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Scampz.GameJam
namespace Scampz.GameJam.Assets.Scripts
{
public class SingletonManager : MonoBehaviour
{
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 scenes = new List<Scene>();
for (var i = 0; i < sceneCount; ++i)
scenes.Add(SceneManager.GetSceneAt(i));