超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user