コード例 #1
0
 private void OnEnable()
 {
     Selection.selectionChanged += SelectionChanged;
     SelectionChanged();
     if (null == stateCollection)
     {
         stateCollection = UCCEManagerUtility.FindAnimStateColection(this);
     }
 }
コード例 #2
0
        /// <summary>
        /// Initialize the manager after deserialization.
        /// </summary>
        public override void Initialize(MainManagerWindow mainManagerWindow)
        {
            base.Initialize(mainManagerWindow);

            // Look for the ItemCollection within the scene if it isn't already populated.
            if (m_AnimationStateCollection == null)
            {
                m_AnimationStateCollection = UCCEManagerUtility.FindAnimStateColection(m_MainManagerWindow);
            }

            // The ItemCollection may have been serialized.
            if (m_AnimationStateCollection != null)
            {
                m_ItemIdTab.Initialize(m_AnimationStateCollection.ItemIds);
                m_ItemStateIndexTab.Initialize(m_AnimationStateCollection.ItemStateIndexes);
                m_AbilityIndexTab.Initialize(m_AnimationStateCollection.AbilityIndexes);
            }
        }