(client) feat:添加角色定义,为匿名定义建立索引,修复一些数据定义中的错误 (#39)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
@ -61,7 +61,7 @@ namespace Managers
|
||||
// 创建Sprite
|
||||
var sprite = Sprite.Create(texture, (Rect)spriteRect, new Vector2(0.5f, 0.5f), pixelsPerUnit);
|
||||
|
||||
var index = row * cols + col;
|
||||
var index = (rows - row - 1) * cols + col;
|
||||
sprites[name + $"_{index}"] = sprite;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user