长音符再修复 加入了关卡连接 优化了一些默认加载

This commit is contained in:
2026-01-13 11:22:39 +08:00
parent 2738089af1
commit 2f9d4aae0c
426 changed files with 299413 additions and 1050 deletions
@@ -0,0 +1,32 @@
namespace Assets.VFXPACK_IMPACT_WALLCOEUR.Scripts
{
using System.Collections.Generic;
using UnityEngine;
public class VfxController : MonoBehaviour
{
[Header("Place VFX prefabs here")]
[SerializeField] List<GameObject> _vfxList;
public List<GameObject> VfxList { get => _vfxList; }
GameObject _currentVfx;
public void Play(int index)
{
if (_currentVfx != null)
{
Destroy(_currentVfx);
}
_currentVfx = Instantiate(_vfxList[index], Vector3.zero, Quaternion.identity, transform);
}
public void Stop()
{
if (_currentVfx != null)
{
Destroy(_currentVfx);
}
}
}
}