Пример #1
0
        public Config.Genes Mutate()
        {
            Config.Genes res = new Config.Genes();
            res._MovementSpeed = _MovementSpeed + (UnityEngine.Random.value - 0.5f) * 2.0f;
            res._ViewDistance  = _ViewDistance + (UnityEngine.Random.value - 0.5f) * 2.0f;

            return(res);
        }
Пример #2
0
 public void SetProperties(Config.Genes props)
 {
     properties = props;
     status     = properties.CreateStatus();
     UpdateColor();
 }