예제 #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;
 }