//Use this for initialization void Start() { //Init references to external objects/components Player = GameObject.Find("SheetsManager").GetComponent <RunPlayer>(); NoteObjects = new List <GameObject>(); //音符物件 /* 音符不需要上顏色 * Colors = new Color[7]; * * Colors[0] = new Color(0, 1, 1, 1); * Colors[1] = new Color(0, 0, 1, 1); * Colors[2] = new Color(0, 1, 0, 1); * Colors[3] = new Color(1, 0, 1, 1); * Colors[4] = new Color(1, 0, 0, 1); * Colors[5] = new Color(1, 0.92f, 0.016f, 1); * Colors[6] = new Color(0.5f, 0.5f, 0.5f, 1); * * Colors[7] = new Color(1, 1, 1, 1); */ PlayAndPause = false; StopSong = false; }
// Use this for initialization void Start() { player = GameObject.Find("Player").GetComponent <RunPlayer>(); }