(client) feat:实现掉落物,UI显示,维度
This commit is contained in:
@ -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; // 所有值都指向同一个列表
|
||||
|
Reference in New Issue
Block a user