コード例 #1
0
        //public bool OverWrite;


        public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
        {
            var bones = this.GetComponentInChildren <SkinnedMeshRenderer>().bones
                        .Where(bone => !bone.name.StartsWith("_"))
                        .ToArray();

            var motionTypes = ArchetypeB.Motion;
            var streamTypes = ArchetypeB.Stream;

            conversionSystem.ConvertMotionEntities
                (this.gameObject, bones, motionTypes, streamTypes, this.MotionClip, this.StreamMask);

            return;


            //int getMotionChannel()
            //{
            //    var channel = this.GetComponents<MotionAuthoring>()
            //        .Select( ( script, i ) => (script, i) )
            //        .First( x => x.script == this )
            //        .i;
            //    return channel;
            //}
            //int getMotion
        }