Exemplo n.º 1
0
 private static void Write(UnsafeWriter writer, ComponentHierarchy value)
 {
     writer.Write(value.Name);
     writer.WritePolymorphic(value.Location);
     writer.WritePolymorphic(value.GameObjectReference);
     writer.WritePolymorphic(value.PrefabInstance);
     writer.WritePolymorphic(value.CorrespondingSourceObject);
     writer.Write(value.IsStripped);
 }
Exemplo n.º 2
0
 protected bool Equals(ComponentHierarchy other)
 {
     return(Equals(Location, other.Location) && Equals(GameObjectReference, other.GameObjectReference) && IsStripped == other.IsStripped);
 }
 public static void Write(UnsafeWriter writer, ComponentHierarchy componentHierarchy)
 {
     componentHierarchy.Location.WriteTo(writer);
     componentHierarchy.OwningGameObject.WriteTo(writer);
     writer.Write(componentHierarchy.Name);
 }