示例#1
0
        public void Start()
        {
            m_button = GetComponent <Button>();
            m_button.onClick.AddListener(OnButtonClicked);

            m_variable = new OSC_BoolVariable(variableName);
            m_variable.OnDataReceived += OnReceivedOSC_Data;

            m_updating = false;
        }
        public void Start()
        {
            m_parameter = GetComponent <Parameter_Boolean>();
            m_parameter.OnValueChanged += delegate { OnValueChanged(); };

            if (NameOverride == "")
            {
                NameOverride = m_parameter.Name;
            }

            m_variable       = new OSC_BoolVariable((NameOverride == "") ? m_parameter.Name : NameOverride);
            m_variable.Value = m_parameter.Value;

            m_variable.OnDataReceived += OnReceivedOSC_Data;

            m_updating = false;
        }