超大量的更新 修复很多问题,gameplay特效初步

This commit is contained in:
FloatGaming
2026-02-14 23:46:20 +08:00
parent ef8eb67259
commit 3a7a0b4669
360 changed files with 85670 additions and 4144 deletions
@@ -1,15 +1,15 @@
using UnityEngine;
using UnityEngine;
public class Notes : MonoBehaviour
{
public int trackIndex; //
public float hitTime; // Ӧñеʱ
private bool canBeJudged = false; // Ƿж
private bool isHit = false; // Ƿѱ
public int trackIndex; // Documentation text normalized.
public float hitTime; // Documentation text normalized.
private bool canBeJudged = false; // Documentation text normalized.
private bool isHit = false; // Documentation text normalized.
private void Update()
{
// ֻнж󣬲Զmiss
// Documentation text normalized.
if (canBeJudged && !isHit && Time.timeSinceLevelLoad > hitTime + 0.3f)
{
JudgeMiss();
@@ -34,7 +34,7 @@ public class Notes : MonoBehaviour
public void JudgeNote()
{
if (!canBeJudged || isHit) return; // ڽжܱж
if (!canBeJudged || isHit) return; // Documentation text normalized.
float currentTime = Time.timeSinceLevelLoad;
float timeDifference = Mathf.Abs(currentTime - hitTime);
@@ -59,10 +59,10 @@ public class Notes : MonoBehaviour
private void Recycle()
{
// NotePoolȹ黹أ
// Documentation text normalized.
if (NotePool.Instance != null)
{
NotePool.Instance.ReturnNote(gameObject, "red"); // color δʱĬ redϲʱ
NotePool.Instance.ReturnNote(gameObject, "red"); // Documentation text normalized.
}
else
{