示例#1
0
 public void SignalTraining()
 {
     ratio = (float)Victories / (float)Matches;
     if (ratio > best_ratio)
     {
         best_ratio = ratio;
     }
     ratio_score = Mathf.Abs(AIDarwin.GetInstance().TRatio - Ratio);
 }
示例#2
0
        public static AIDarwin GetInstance()
        {
            if (instance == null)
            {
                instance = new AIDarwin();
            }

            return(instance);
        }
 void Awake()
 {
     Darwin = AIDarwin.GetInstance();
 }