コード例 #1
0
        void OnEnable()
        {
            m_Target   = (OscReceiver)target;
            m_PortProp = serializedObject.FindProperty("m_Port");

            SortAddresses();
        }
コード例 #2
0
ファイル: OscMessageHandler.cs プロジェクト: Keroosha/OscCore
        void OnEnable()
        {
            if (m_Receiver == null)
            {
                m_Receiver = GetComponentInParent <OscReceiver>();
            }

            if (m_Registered || string.IsNullOrEmpty(Address))
            {
                return;
            }

            if (m_Receiver != null && m_Receiver.Server != null)
            {
                m_ActionPair = new OscActionPair(ValueRead, InvokeEvent);
                Receiver.Server.TryAddMethodPair(Address, m_ActionPair);
                m_Registered = true;
            }
        }