void Start()
        {
            world   = World.DefaultGameObjectInjectionWorld;
            manager = world.EntityManager;

            buildingSystem       = world.GetExistingSystem <BuildingSystem>();
            playerResourceSystem = world.GetExistingSystem <PlayerResourceSystem>();
        }
Example #2
0
 protected override void OnCreate()
 {
     gridSystem           = World.GetExistingSystem <GridSystem>();
     playerResourceSystem = World.GetExistingSystem <PlayerResourceSystem>();
 }