/// <summary>
        /// update
        /// </summary>
        public void UpdateSlots()
        {
            int len = slots.Length;

            for (int i = 0; i < len; ++i)
            {
                Slot slot = slots[i];
                if (slot && slot.isActiveAndEnabled)
                {
                    slot.UpdateSlot();
                }
            }
        }
Exemplo n.º 2
0
		/// <summary>
		/// update
		/// </summary>
		public void UpdateArmature(){
			int len = updateFrames.Length;
			for(int i=0;i<len;++i){
				SpriteFrame frame = updateFrames[i];
				if(frame&&frame.isActiveAndEnabled) frame.UpdateFrame();
			}

			len = updateMeshs.Length;
			for(int i=0;i<len;++i){
				SpriteMesh mesh = updateMeshs[i];
				if(mesh&&mesh.isActiveAndEnabled) mesh.UpdateMesh();
			}

			len = slots.Length;
			for(int i=0;i<len;++i){
				Slot slot = slots[i];
				if(slot && slot.isActiveAndEnabled){
					slot.UpdateSlot();
				}
			}
		}