コード例 #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;
 }