refactor: use ReadSingleton for GameState in RenderSystem

This commit is contained in:
hypercross 2026-07-18 21:24:11 +08:00
parent 910fd00a03
commit da84605b2f
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class RenderSystem : ISystem
public void Run(World world) public void Run(World world)
{ {
ref var state = ref world.GetSingleton<GameState>(); var state = world.ReadSingleton<GameState>();
// Build a 3×3 grid. // Build a 3×3 grid.
var grid = new char[3, 3]; var grid = new char[3, 3];