From 8a1d19d4b4685f67e98e5e1722a9de9716d29f83 Mon Sep 17 00:00:00 2001 From: Stella Cannefax Date: Thu, 19 Sep 2019 22:00:37 -0700 Subject: [PATCH] change var name for template checker in router --- Runtime/Scripts/Component/OscRouter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Scripts/Component/OscRouter.cs b/Runtime/Scripts/Component/OscRouter.cs index 01af194..27bb8b5 100644 --- a/Runtime/Scripts/Component/OscRouter.cs +++ b/Runtime/Scripts/Component/OscRouter.cs @@ -35,7 +35,7 @@ public class OscRouter : MonoBehaviour bool m_PrimaryCallbackAdded; int m_PreviousServerCount; - readonly RegexDoubleActionMapper m_NewTemplateChecker = new RegexDoubleActionMapper(); + readonly RegexDoubleActionMapper m_TemplateChecker = new RegexDoubleActionMapper(); [SerializeField] int m_Port = 9000; @@ -118,7 +118,7 @@ public static void AddCallbacks(string address, OscActionPair actionPair) } Instance.WildcardAddressHandlers.Add(address); - Instance.m_NewTemplateChecker.Add(PathUtils.RegexForWildcardPath(address), actionPair); + Instance.m_TemplateChecker.Add(PathUtils.RegexForWildcardPath(address), actionPair); } Instance.AddressHandlers[address] = actionPair; @@ -188,7 +188,7 @@ protected void PrimaryCallback(string address, OscDataHandle handle) if (!AddressHandlers.TryGetValue(address, out var actionPair)) { // if we find a match in the template handlers, add a handler, otherwise ignore this address - if (m_NewTemplateChecker.Process(address, out var newActionPair)) + if (m_TemplateChecker.Process(address, out var newActionPair)) { AddCallbacks(address, newActionPair); actionPair = newActionPair;