Class MatchAction
Namespace: Unity.MARS.Actions
Syntax
public class MatchAction : MonoBehaviour, IMatchAcquireHandler, IMatchUpdateHandler, IMatchLossHandler, IMatchTimeoutHandler, IAction, ISimulatable
Methods
OnMatchAcquire(QueryResult)
Called when a query match has been found
Declaration
public void OnMatchAcquire(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
Implements
OnMatchLoss(QueryResult)
Called when a query match has been lost
Declaration
public void OnMatchLoss(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
Implements
OnMatchTimeout(QueryArgs)
Called when no query match has been found in time
Declaration
public void OnMatchTimeout(QueryArgs queryArgs)
Parameters
Type | Name | Description |
---|---|---|
QueryArgs | queryArgs | The original query associated with this object |
Implements
OnMatchUpdate(QueryResult)
Called when a query match's data has updated
Declaration
public void OnMatchUpdate(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |