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