// Start is called before the first frame update
 void Start()
 {
     state = 0;
     l     = new List <Compoment>();
     foreach (GameObject k in g)
     {
         Compoment c = k.GetComponent <Compoment>();
         add(c);
     }
 }
 public void remove(Compoment c)
 {
     l.Remove(c);
 }
 public void add(Compoment c)
 {
     l.Add(c);
 }