Example #1
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Open Animation Editor"))
            {
                W_UIAnimator.Init((UIAnimator)target);
            }

            /*
             * if(m_animator == null)
             *  m_animator = (UIAnimator) target;
             * for (int n = 0 ; n < m_animator.AnimationList.Count ; n++)
             * {
             *  DrawUIAnimation(m_animator.AnimationList[n]);
             *
             *  if (GUILayout.Button("Play"))
             *  {
             *      m_animator.AnimationList[n].Play();
             *      Debug.Log("click");
             *  }
             * }
             */
        }