コード例 #1
0
 public InstanceSelectionContext(Component injectee,
                                 Type injecteeType,
                                 PrefabComponentKey componentKey)
 {
     this.injectee     = injectee;
     this.injecteeType = injecteeType;
     this.componentKey = componentKey;
 }
コード例 #2
0
 public override bool Equals(object obj)
 {
     if (obj is PrefabComponentKey)
     {
         PrefabComponentKey other = (PrefabComponentKey)obj;
         return(prefabKey == other.prefabKey && componentType == other.componentType);
     }
     else
     {
         return(false);
     }
 }