Commit 2e76df20 authored by 16이상민's avatar 16이상민

Corrected the cause of malfunction in scene other than game: Concat () is a...

Corrected the cause of malfunction in scene other than game: Concat () is a Linq method, so it returns the result of performing the action.
parent e880d437
...@@ -351,7 +351,7 @@ public class JudgeManager : MonoBehaviour ...@@ -351,7 +351,7 @@ public class JudgeManager : MonoBehaviour
} }
} }
class MotionGageManager : MonoBehaviour class MotionGageManager
{ {
public GameObject motionGuage; public GameObject motionGuage;
private float elapsedMotion; private float elapsedMotion;
......
This diff is collapsed.
...@@ -94,7 +94,7 @@ public class TrackManager : MonoBehaviour { ...@@ -94,7 +94,7 @@ public class TrackManager : MonoBehaviour {
var stretched = Enumerable.Empty<TrackInfo>(); var stretched = Enumerable.Empty<TrackInfo>();
Enumerable.Range(0, 1 + (4 / tracks.Count())) Enumerable.Range(0, 1 + (4 / tracks.Count()))
.ToList() .ToList()
.ForEach(x => stretched.Concat(tracks)); .ForEach(x => stretched = stretched.Concat(tracks));
return stretched; return stretched;
} }
...@@ -120,9 +120,9 @@ public class TrackManager : MonoBehaviour { ...@@ -120,9 +120,9 @@ public class TrackManager : MonoBehaviour {
Artist.text = "Artist :" + info.Artist.ToString(); Artist.text = "Artist :" + info.Artist.ToString();
BPM.text = "BPM :" + info.BPM .ToString(); BPM.text = "BPM :" + info.BPM .ToString();
trackInfo.GetComponentsInChildren<Transform>() trackInfo.transform.Cast<Transform>()
.ToList() .ToList()
.ForEach(x => Destroy(x)); .ForEach(x => Destroy(x.gameObject));
info.TrackList info.TrackList
.ForEach(x => Instantiate(trackInfoItemPrefab, trackInfo.transform) .ForEach(x => Instantiate(trackInfoItemPrefab, trackInfo.transform)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment