public static void AddTransformSynchronizationComponents(EntityTemplate template, string writeAccess, UnityEngine.Quaternion rotation, Vector3 location = default(Vector3), Vector3 velocity = default(Vector3)) { var transformSnapshot = TransformUtils.CreateTransformSnapshot(location, rotation, velocity); template.AddComponent(transformSnapshot, writeAccess); }
#pragma warning restore 649 public void WriteTo(EntityTemplate template) { var transformSnapshot = TransformUtils.CreateTransformSnapshot(transform.position, transform.rotation); template.AddComponent(transformSnapshot, writeAccess); }