List <> Problem :(

using UnityEngine;
using System.Collections;
[System.Serializable]
public class pl
{ public string name; public int
hp,maxhp; public int attack; }


> using UnityEngine; 
> using System.Collections;
> using System.Collections.Generic;
> public class player : MonoBehaviour {
> public pl[] pl; public List pll;
> 
> void Update(){
> 
> } void OnGUI(){
> if(GUILayout.Button("TIKLA")){
> pll.Add(pl[0]);
> 
> } } }

**

Sorry for very bad english :frowning:
When I add list same item.

When I change the name of the last item
Change is happening as I have all of the same item
I want to be independent of the items

**

You declare and instantiate a list of MyClass objects like this:

List myList = new List();

For you, thatโ€™d be this:

public List pll = new List();