Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
0.4.0
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (17 sloc) 655 Bytes
using Unity.Entities;
using UnityEngine;
namespace Improbable.Gdk.TransformSynchronization
{
[CreateAssetMenu(menuName = "SpatialOS/Transforms/Receive Strategies/Direct")]
public class DirectReceiveStrategy : TransformSynchronizationReceiveStrategy
{
internal override void Apply(Entity entity, World world, EntityCommandBuffer commandBuffer)
{
commandBuffer.AddComponent(entity, new DirectReceiveTag());
}
internal override void Remove(Entity entity, World world, EntityCommandBuffer commandBuffer)
{
commandBuffer.RemoveComponent<DirectReceiveTag>(entity);
}
}
}