コード例 #1
0
    public void AddMesh(Equipable item)
    {
        SkinnedMeshRenderer newMesh = Instantiate(item.GetComponentInChildren <SkinnedMeshRenderer>());

        newMesh.transform.parent            = targetMesh.transform;
        newMesh.bones                       = targetMesh.bones;
        newMesh.rootBone                    = targetMesh.rootBone;
        currentMeshes[item.Type.ToString()] = newMesh;
    }