Ejemplo n.º 1
0
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);

            if (Instance == null)
            {
                Instance = this;
            }

            else if (Instance != this)
            {
                Destroy(gameObject);
            }

            // Register traits here
            Traits = new List <Trait>();
            for (int i = 0; i < traitNames.Length; i++)
            {
                RegisterTrait(traitNames[i], traitDescriptions[i]);
            }
        }
Ejemplo n.º 2
0
 public Genom(double value, Guid traitUUID)
 {
     this.Trait = GenomPool.GetTrait(traitUUID);
     this.Value = value;
 }