using UnityEngine;
using System.Collections;

public class bonesbones : MonoBehaviour {
	
	// Use this for initialization
	void Start () {

		GameObject leg = (GameObject)Instantiate(Resources.Load("testbody"), Vector3.zero, Quaternion.identity);
		leg.name = leg.name.Replace("(Clone)", "");

		Transform t = GameObject.Find ("body/Armature/arma/RightLeg").transform;
		GameObject.Find ("testbody").transform.parent = t;
		//GameObject body = GameObject.Find ("body/Armature/arma/RightLeg");
		//GameObject.Find ("testbody").transform.parent = body;
	}
	
	// Update is called once per frame
	void Update () {
		//Debug.LogError ("Hello");
	}
}
