(client) feat:实现掉落物,UI显示,维度

This commit is contained in:
m0_75251201
2025-08-27 13:56:22 +08:00
parent f04c89046b
commit 0c99e2beee
46 changed files with 6150 additions and 1809 deletions

View File

@ -38,10 +38,10 @@ namespace Prefab
public void DefaultInit()
{
var animator = GetComponentsInChildren<SpriteAnimator>();
var inf = animator.Cast<ITick>().ToList();
var inf = animator.Cast<ITick>().ToArray();
foreach (EntityState state in Enum.GetValues(typeof(EntityState)))
{
var orientationDict = new Dictionary<Orientation, List<ITick>>();
var orientationDict = new Dictionary<Orientation, ITick[]>();
foreach (Orientation orientation in Enum.GetValues(typeof(Orientation)))
{
orientationDict[orientation] = inf; // 所有值都指向同一个列表