void Start() { buttonColor = GlobalSingleton.GetColor(id); buttonColor.a = offOpacity; image.color = buttonColor; KeyRemap(); }
void Start() { Color c = GlobalSingleton.GetColor(id); for (int i = 0; i < noteColors.Length; ++i) { noteColors[i].color = c; } if (sustainLength > 0) { tail.gameObject.SetActive(true); tail.sizeDelta = new Vector2(12, sustainLength * BEAT_SIZE); tail.gameObject.AddComponent <MatchScale>(); } KeyRemap(); }