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
}
}
class MotionGageManager : MonoBehaviour
class MotionGageManager
{
public GameObject motionGuage;
private float elapsedMotion;
......
This diff is collapsed.
......@@ -94,7 +94,7 @@ public class TrackManager : MonoBehaviour {
var stretched = Enumerable.Empty<TrackInfo>();
Enumerable.Range(0, 1 + (4 / tracks.Count()))
.ToList()
.ForEach(x => stretched.Concat(tracks));
.ForEach(x => stretched = stretched.Concat(tracks));
return stretched;
}
......@@ -120,9 +120,9 @@ public class TrackManager : MonoBehaviour {
Artist.text = "Artist :" + info.Artist.ToString();
BPM.text = "BPM :" + info.BPM .ToString();
trackInfo.GetComponentsInChildren<Transform>()
.ToList()
.ForEach(x => Destroy(x));
trackInfo.transform.Cast<Transform>()
.ToList()
.ForEach(x => Destroy(x.gameObject));
info.TrackList
.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