超大量的更新 修复很多问题,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,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@@ -7,7 +7,7 @@ using UnityEngine.EventSystems;
public class controllerSettings : MonoBehaviour
{
[Header("按键绑定")]
[Header("Inspector")]
public Button[] keyButtons; // assign 5 buttons in Inspector
public Text errorText; // UI text to show error/success messages
[Header("Message Colors")]
@@ -15,7 +15,7 @@ public class controllerSettings : MonoBehaviour
public Color messageSuccessColor = Color.green;
private Coroutine messageCoroutine = null;
[Header("音符流动速度滑动变阻器")]
[Header("Inspector")]
public Slider noteSpeedMultipler_slider;
public Text noteSpeedMultipler_valueText;
public Button noteSpeed_DecreaseButton;
@@ -194,7 +194,7 @@ public class controllerSettings : MonoBehaviour
// start blinking underscore on the clicked button
blinkCoroutine = StartCoroutine(BlinkUnderscore(index));
// show persistent prompt
ShowPersistentMessage("按下新按键", messageErrorColor);
ShowPersistentMessage("按下新按键", messageErrorColor);
}
private IEnumerator BlinkUnderscore(int index)
@@ -229,7 +229,7 @@ public class controllerSettings : MonoBehaviour
if (existing == key)
{
// conflict: reject and keep waiting
string msg = $"按键冲突:{KeyBindingManager.GetDisplayName(key)}已被分配给按键{i+1}。";
string msg = $"按键冲突:{KeyBindingManager.GetDisplayName(key)}已被分配给按键{i+1}。";
ShowMessage(msg, messageErrorColor, 2f);
StartCoroutine(FlashButtonInvalid(rebindingIndex));
return;
@@ -244,7 +244,7 @@ public class controllerSettings : MonoBehaviour
// clear persistent prompt and show success message
ClearMessage();
ShowMessage("按键设置已保存", messageSuccessColor, 2f);
ShowMessage("按键设置已保存", messageSuccessColor, 2f);
// finish
previousKeyValid = false;
@@ -316,7 +316,7 @@ public class controllerSettings : MonoBehaviour
KeyBindingManager.ChangeKeyBinding(colors[rebindingIndex], previousKey);
InputManager.Instance?.RefreshKeyLabels();
ClearMessage();
ShowMessage("按键设置已保存", messageSuccessColor, 2f);
ShowMessage("按键设置已保存", messageSuccessColor, 2f);
}
previousKeyValid = false;
previousKey = KeyCode.None;