コード例 #1
0
    public void Test()
    {
        genomesString    = MakeRandomGenes(4);
        sensationsString = GetSymptoms(genomesString);

        geneSystem.Apply(genomesString, sensationsString);
        attempt++;
        Debug.Log(attempt);
    }
コード例 #2
0
    void OnGUI()
    {
        {
            float x = 50;
            float y = 20;

            float width  = 200;
            float height = 15;

            if (GUI.Button(new Rect(x, y, width, 20), "Apply"))
            {
                geneSystem.Apply(genomesString, sensationsString);
            }
        }

        var genes = geneSystem.Genes;

        DrawActiveGenomes(genes);
        DrawGenesToApply(genes, genomesString);
        DrawSenations(sensationsString);
        DrawGeneInfo(genes);
    }