Example #1
0
        // Stop listening to any previous data binder and start listening to the new one.
        public void RegisterDataBinder(DataBinder <DialGraphics, string> dataBinder)
        {
            if (dataBinder == null)
            {
                return;
            }

            UnregisterDataBinder();
            m_dataBinder     = dataBinder as DataBinderDial;
            CurrentDialValue = m_dataBinder.GetCurrentData();
        }
Example #2
0
        void Start()
        {
            setInitialPositions();

            generateAndLayoutLabels();

            if (m_dataBinder != null)
            {
                //Set the Dial value based on a string
                CurrentDialValue = m_dataBinder.GetCurrentData();
                SetPhysicsStep(CurrentDialInt);
            }
        }