示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((StateKey.GetHashCode() * 397) ^ (Components != null ? Components.GetHashCode() : 0));
     }
 }
示例#2
0
 static void BindListItem(VisualElement element, StateKey stateKey)
 {
     (element as Label).text = $"{stateKey.Target}: {stateKey.Key}";
 }
示例#3
0
 public bool Equals(StateKeyComponentsSet other)
 {
     return(StateKey.Equals(other.StateKey) && Equals(Components, other.Components));
 }
示例#4
0
 public StateKeyComponentsSet(StateKey stateKey, Component[] components)
 {
     StateKey   = stateKey;
     Components = components;
 }