Exemplo n.º 1
0
 /// <summary>
 /// Initialize the property to use the given action reference.
 /// </summary>
 /// <param name="reference">Reference to an <see cref="InputAction"/>.</param>
 /// <remarks>
 /// When the struct is serialized, it will only serialize a reference to
 /// the given <paramref name="reference"/> object.
 /// </remarks>
 public InputActionProperty(InputActionReference reference)
 {
     m_UseReference = true;
     m_Action       = null;
     m_Reference    = reference;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Check whether the property references the same action.
 /// </summary>
 /// <param name="other">An action reference.</param>
 /// <returns>True if the property and <paramref name="other"/> reference the same action.</returns>
 public bool Equals(InputActionReference other)
 {
     return(m_Reference == other);
 }