void spawnNote(SolarColor color) { Note o = Instantiate<Note>(NotePrefab); o.transform.position = spawnpoints[(int)color]; o.ColorOfNote = color; o.GetComponent<MoveTowards>().turnToLeft = ((int)color % 2 == 0); }
public static void SetPress(SolarColor color, bool value) { if (inputPressed[(int)color] != value) { inputPressed[(int)color] = value; if (value) { inputDown[(int)color] = true; } else { inputUp[(int)color] = true; } } }
public static bool GetPress(SolarColor color) { return inputPressed[(int)color]; }