// Start is called before the first frame update
    void Start()
    {
        geneSystem = new GeneSystem();

        var traitsCount = Enum.GetNames(typeof(Gene.Trait)).Length;

        for (int i = 0; i < 55; i++)
        {
            CurrentTraits[i] = Gene.Trait.Unknown;
        }

        for (int i = 0; i < traitsCount; i++)
        {
            CurrentTraits[i] = (Gene.Trait)i;
        }
    }
예제 #2
0
 void Start()
 {
     geneSystem = new GeneSystem();
 }