void Update() { if ((Input.GetKeyDown(KeyCode.W) || ardBlue.checkStatus() == 1) && !isStart) { mainEnd(); } }
// Update is called once per frame void Update() { if ((Input.GetKeyDown(KeyCode.LeftShift) || ardBlue.checkStatus() == 3) && !isStart) { isStart = true; audioManager.Play(6); fadeScreen.fadeOut(); } }
void Update() { input = ardBlue.checkStatus(); if (allNote != 0) { Persent = (25 * Bd / allNote) + (85 * Gd / allNote) + (100f * Pf / allNote); } else { Persent = 0f; } for (int i = 0; i < noc.Count; i++) { if (noc[i].transform.position.x >= -10) { not_x = noc[0].transform.position.x; dis = (Pan.transform.position.x - not_x) * (-1); for (k = 0; k < noc.Count; k++) { newNot_k = noc[k].transform.position.x; newDis = (Pan.transform.position.x - newNot_k) * (-1); if (newDis < -1f) { Combo = 0; continue; } if (newDis >= -1f && newDis <= 1f) { if (panjungCheck(k)) { ardBlue.status = 0; Destroy(noc[k]); noc.RemoveAt(k); NoteType.RemoveAt(k); addScore(dis); } } } if (dis < -1f) { if (isCoroutineRun) { StopCoroutine(panjungImage(miss)); isCoroutineRun = false; StartCoroutine(panjungImage(miss)); } else { StartCoroutine(panjungImage(miss)); } if (dis < -3f) { Destroy(noc[0]); noc.RemoveAt(0); NoteType.RemoveAt(0); } } if (noc.Count != 0) { noc[i].transform.Translate(Vector2.left * Speed * Time.deltaTime); } } } }