void Start() { world = World.DefaultGameObjectInjectionWorld; manager = world.EntityManager; buildingSystem = world.GetExistingSystem <BuildingSystem>(); playerResourceSystem = world.GetExistingSystem <PlayerResourceSystem>(); }
protected override void OnCreate() { gridSystem = World.GetExistingSystem <GridSystem>(); playerResourceSystem = World.GetExistingSystem <PlayerResourceSystem>(); }