public void ResigerForAnimationCallbacks(IAnimationTickListner listener)
 {
     m_animationListeners.Add(new WeakReference<IAnimationTickListner>(listener));
 }
        // Called by the animated LED class. This function should register with the controller
        // for animation callbacks.
        public void ToggleResigerForAnimationTicks(bool regsiter, IAnimationTickListner listener)
        {
            if (regsiter)
            {
                m_animationTickListener = listener;
            }
            else
            {
                m_animationTickListener = null;
            }

            // Only register if the controller exists
            if (m_animationTickListener != null && m_controller != null)
            {
                m_controller.ResigerForAnimationCallbacks(listener);
            }
        }