protected override void OnCreate() { _boardCache = World.GetExistingSystem <BoardCacheSystem>(); _events = World.GetOrCreateSystem <EventSystem>(); RequireSingletonForUpdate <GameComponent>(); }
protected override void OnCreate() { _boardCache = World.GetExistingSystem <BoardCacheSystem>(); RequireSingletonForUpdate <GameComponent>(); _gemRng = new Random(); _gemRng.InitState(); _gemPrefabs = Entities.With(EntityQueryOptions.IncludePrefab).WithAll <GemComponent, Prefab>().ToEntityQuery(); }
protected override void OnCreate() { _cache = World.GetOrCreateSystem <BoardCacheSystem>(); RequireSingletonForUpdate <GameComponent>(); }