public void UpdateArraySize(int size)
 {
     if (tab.Length != size)
     {
         tab = new EditorGeneData[size];
         for (int i = 0; i < size; i++)
         {
             tab[i] = new EditorGeneData();
         }
     }
 }
        public static void DisplayGene(Gene gene, EditorGeneData editorGeneData)
        {
            editorGeneData.isFoldedOut = EditorGUILayout.Foldout(editorGeneData.isFoldedOut, "Gene: " + gene.InnovationNb);
            if (!editorGeneData.isFoldedOut)
            {
                return;
            }

            EditorGUI.indentLevel++;

            EditorGUILayout.Toggle("Is enabled: ", gene.IsEnabled);
            EditorGUILayout.LabelField("InNode: " + gene.StartNode.InnovationNb);
            EditorGUILayout.LabelField("OutNode: " + gene.EndNode.InnovationNb);

            EditorGUI.indentLevel--;
        }