Commit 5c580308 authored by Chae Ho Shin's avatar Chae Ho Shin

Set Select fix

parent 935a4c60
......@@ -508,9 +508,13 @@ MonoBehaviour:
trackItemPrefab: {fileID: 1069549255683958, guid: 9f8cf744ce4ee864b8013a2d3117ea51,
type: 2}
trackInfo: {fileID: 311604866}
trackInfoItemPrefab: {fileID: 1004419332638792, guid: 57317412a651d8c45a6ab377b9771359,
type: 2}
backgrounds:
- {fileID: 2800000, guid: 963fe9166d3c62247a51d27f5cb6b3cd, type: 3}
- {fileID: 2800000, guid: 70208bf410b6ec2429bfba715fc33842, type: 3}
Artist: {fileID: 1505678207}
BPM: {fileID: 1378665695}
--- !u!114 &609057690
MonoBehaviour:
m_ObjectHideFlags: 0
......
......@@ -37,6 +37,9 @@ public class TrackManager : MonoBehaviour {
selectedTrackItem.GetComponentInChildren<Text>().color = Color.white;
selectedTrackItem = trackList.transform.GetChild(2).gameObject;
selectedTrackItem.GetComponentInChildren<Text>().color = Color.black;
if (selectedTrackItem == null)
return;
Artist.text = selectedTrackItem.gameObject.GetComponent<TrackInfoHolder>().trackInfo.Artist.ToString();
BPM.text = selectedTrackItem.gameObject.GetComponent<TrackInfoHolder>().trackInfo.BPM.ToString();
......@@ -85,7 +88,6 @@ public class TrackManager : MonoBehaviour {
foreach (TrackInfo track in tracks)
{
var trackItem = Instantiate(trackItemPrefab, trackList.transform);
// trackItem.transform.SetParent(trackList.transform);
trackItem.AddComponent<TrackInfoHolder>().trackInfo = track;
}
......@@ -99,6 +101,7 @@ public class TrackManager : MonoBehaviour {
GameManager.Instance.CurrentTrack = holder.trackInfo;
Destroy(GetComponent<InputManager>());
Destroy(this);
GameManager.Instance.SceneTransition("InGame");
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TitleManager : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
fileFormatVersion: 2
guid: 877b81d1b36ae5c4591ad9e49f0c8873
timeCreated: 1503608441
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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