Пример #1
0
 private static void Write(UnsafeWriter writer, ScriptComponentHierarchy value)
 {
     writer.WritePolymorphic(value.Location);
     writer.WritePolymorphic(value.ScriptReference);
     writer.WritePolymorphic(value.GameObjectReference);
     writer.WritePolymorphic(value.PrefabInstance);
     writer.WritePolymorphic(value.CorrespondingSourceObject);
     writer.Write(value.IsStripped);
 }
 public static void Write(UnsafeWriter writer, ScriptComponentHierarchy scriptComponentHierarchy)
 {
     scriptComponentHierarchy.Location.WriteTo(writer);
     scriptComponentHierarchy.OwningGameObject.WriteTo(writer);
     scriptComponentHierarchy.ScriptReference.WriteTo(writer);
 }
Пример #3
0
 protected bool Equals(ScriptComponentHierarchy other)
 {
     return(base.Equals(other) && Equals(ScriptReference, other.ScriptReference));
 }