コード例 #1
0
        void Start()
        {
            world   = World.DefaultGameObjectInjectionWorld;
            manager = world.EntityManager;

            buildingSystem       = world.GetExistingSystem <BuildingSystem>();
            playerResourceSystem = world.GetExistingSystem <PlayerResourceSystem>();
        }
コード例 #2
0
ファイル: BuildingSystem.cs プロジェクト: 583qq/rtslike_dots
 protected override void OnCreate()
 {
     gridSystem           = World.GetExistingSystem <GridSystem>();
     playerResourceSystem = World.GetExistingSystem <PlayerResourceSystem>();
 }