button on click event and prefab items

I have some objects generated via script through a prefab

Object prefab = new Object();
			prefab = AssetDatabase.LoadAssetAtPath("Assets/prefab/enamy.prefab", typeof(GameObject));
			Enamies *= Instantiate(prefab, this.transform.position, Quaternion.identity) as GameObject;*

and I have a button gui who’s on click event I want to call the on nextTurn of the items made by the prefab, the only problem is it is calling the nextTurn event of the prefab and not the items created by the prefab.

You need to assign the created prefabs to new variable and use that varibale to call that in your code.