Exemple #1
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.world.ComponentManager.AddSharedComponent(entity, component);
 }
Exemple #2
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.world.ComponentManager.RemoveSharedComponent <T>(entity);
 }
Exemple #3
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.world.ComponentManager.AddComponent(buffer.entityTarget, component);
 }
Exemple #4
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.world.EntityManager.DestroyEntity(entity);
 }
Exemple #5
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.entityTarget = buffer.world.Instantiate(prefab);
 }
Exemple #6
0
 public void Execute(EntityCommandBuffer buffer)
 {
     buffer.entityTarget = buffer.world.Instantiate(archetype);
 }
Exemple #7
0
 public static void PlaybackAfterUpdate(this EntityCommandBuffer buffer)
 {
     buffer.world.RegisterForExecuteAfterUpdate(buffer);
 }