Format code
This commit is contained in:
@@ -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()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using Scampz.GameJam.Assets.Scripts;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user