public GameObject InstanceGameobject(string _path, Transform _parent) { GameObject obj = Resources.Load(_path, typeof(GameObject)) as GameObject; GameObject go = Instantiate(obj); go.transform.parent = _parent; go.transform.localPosition = Vector3.zero; go.transform.localScale = Vector3.one; return go; }