// Update is called once per frame void Update() { if (Input.GetKeyDown("up")) { if (currentNote != null && currentNote.GetHittable() && currentNote.spriteType == 0) { OnHitSuccess(); } else { OnHitFail(); } } if (Input.GetKeyDown("down")) { if (currentNote != null && currentNote.GetHittable() && currentNote.spriteType == 1) { OnHitSuccess(); } else { OnHitFail(); } } if (Input.GetKeyDown("left")) { if (currentNote != null && currentNote.GetHittable() && currentNote.spriteType == 2) { OnHitSuccess(); } else { OnHitFail(); } } if (Input.GetKeyDown("right")) { if (currentNote != null && currentNote.GetHittable() && currentNote.spriteType == 3) { OnHitSuccess(); } else { OnHitFail(); } } }