コード例 #1
0
        public PartsTransformState GetTransform(enPartsType partsType)
        {
            PartsTransformState res = new PartsTransformState();

            switch (partsType)
            {
            case enPartsType.Body:
                res = body;
                break;

            case enPartsType.Head:
                res = head;
                break;

            case enPartsType.LeftArm:
                res = leftArm;
                break;

            case enPartsType.RightArm:
                res = rightArm;
                break;

            case enPartsType.LeftHand:
                res = leftHand;
                break;

            case enPartsType.RightHand:
                res = rightHand;
                break;

            case enPartsType.LeftLeg:
                res = leftLeg;
                break;

            case enPartsType.RightLeg:
                res = rightLeg;
                break;

            case enPartsType.LeftFoot:
                res = leftFoot;
                break;

            case enPartsType.RightFoot:
                res = rightFoot;
                break;

            case enPartsType.Ant:
                res = ant;
                break;
            }
            return(res);
        }
コード例 #2
0
 public void Reset()
 {
     this = new PartsTransformState();
 }