Пример #1
0
 public InstanceSelectionContext(Component injectee,
                                 Type injecteeType,
                                 PrefabComponentKey componentKey)
 {
     this.injectee     = injectee;
     this.injecteeType = injecteeType;
     this.componentKey = componentKey;
 }
 public override bool Equals(object obj)
 {
     if (obj is PrefabComponentKey)
     {
         PrefabComponentKey other = (PrefabComponentKey)obj;
         return(prefabKey == other.prefabKey && componentType == other.componentType);
     }
     else
     {
         return(false);
     }
 }