/* * Sets the animation state of this clip button */ public virtual void UpdatePlayingState() { switch (musicRef.clipState) { case InstrumentClip.ClipState.IS_DISABLED: if (m_frame != null) { m_frame.AnimateBackgroundColor(Color.gray); } break; case InstrumentClip.ClipState.IS_QUEUED: if (m_frame != null) { m_frame.AnimateBackgroundColor(Color.blue); } break; case InstrumentClip.ClipState.IS_PLAYING: if (m_frame != null) { m_frame.AnimateBackgroundColor(Color.yellow); } break; } }