コード例 #1
0
ファイル: Osc.cs プロジェクト: houpan/AOUnity_1
 /// <summary>
 /// Set the method to call back on when a message with the specified
 /// address is received.  The method needs to have the OscMessageHandler signature - i.e. 
 /// void amh( OscMessage oscM )
 /// </summary>
 /// <param name="key">Address string to be matched</param>   
 /// <param name="ah">The method to call back on.</param>   
 public void SetAddressHandler(string key, OscMessageHandler ah)
 {
     Hashtable.Synchronized(AddressTable).Add(key, ah);
 }
コード例 #2
0
ファイル: Osc.cs プロジェクト: houpan/AOUnity_1
 /// <summary>
 /// Set the method to call back on when any message is received.
 /// The method needs to have the OscMessageHandler signature - i.e. void amh( OscMessage oscM )
 /// </summary>
 /// <param name="amh">The method to call back on.</param>   
 public void SetAllMessageHandler(OscMessageHandler amh)
 {
     AllMessageHandler = amh;
 }
コード例 #3
0
 // Set the method to call back on when any message is received.
 // The method needs to have the OscMessageHandler signature - i.e. void amh( OscMessage oscM )
 // amh - The method to call back on.
 public void SetAllMessageHandler(OscMessageHandler amh)
 {
     AllMessageHandler = amh;
       Debug.Log("setting message handler");
 }
コード例 #4
0
 /// <summary>
 /// Set the method to call back on when any message is received.
 /// The method needs to have the OscMessageHandler signature - i.e. void amh( OscMessage oscM )
 /// </summary>
 /// <param name="amh">The method to call back on.</param>
 public void SetAllMessageHandler(OscMessageHandler amh)
 {
     AllMessageHandler = amh;
 }
コード例 #5
0
 /// <summary>
 /// Set the method to call back on when a message with the specified
 /// address is received.  The method needs to have the OscMessageHandler signature - i.e.
 /// void amh( OscMessage oscM )
 /// </summary>
 /// <param name="key">Address string to be matched</param>
 /// <param name="ah">The method to call back on.</param>
 public void SetAddressHandler(string key, OscMessageHandler ah)
 {
     Hashtable.Synchronized(AddressTable).Add(key, ah);
 }
コード例 #6
0
 public void SetAllMessageHandler(OscMessageHandler amh)
 {
     oscHandler.SetAllMessageHandler(amh);
 }
コード例 #7
0
 public void SetAddressHandler(string key, OscMessageHandler ah)
 {
     oscHandler.SetAddressHandler(key, ah);
 }