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

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