修复一堆bug 加入粒子系统代替原击打特效 焕新长音符逻辑 修复多重计分 更新判定管理和音符生成器 搞了一个免费包

This commit is contained in:
2025-12-18 03:26:52 +08:00
parent 1dd6c95ec9
commit a7d8d71d10
1572 changed files with 1658779 additions and 527 deletions
@@ -0,0 +1,39 @@
using UnityEngine;
using System.Collections;
// Cartoon FX - (c) 2015 Jean Moreno
// Randomly changes a light's intensity over time.
[RequireComponent(typeof(Light))]
public class CFX_LightFlicker : MonoBehaviour
{
// Loop flicker effect
public bool loop;
// Perlin scale: makes the flicker more or less smooth
public float smoothFactor = 1f;
/// Max intensity will be: baseIntensity + addIntensity
public float addIntensity = 1.0f;
private float minIntensity;
private float maxIntensity;
private float baseIntensity;
void Awake()
{
baseIntensity = GetComponent<Light>().intensity;
}
void OnEnable()
{
minIntensity = baseIntensity;
maxIntensity = minIntensity + addIntensity;
}
void Update ()
{
GetComponent<Light>().intensity = Mathf.Lerp(minIntensity, maxIntensity, Mathf.PerlinNoise(Time.time * smoothFactor, 0f));
}
}