Пример #1
0
        void Start()
        {
            _ai = new NeuronNetwork();

            NeuronLoader nl = gameObject.GetComponent <NeuronLoader>();

            if (nl != null)
            {
                nl.Init();
            }

            for (int i = 0; i < WarmUpIterations; i++)
            {
                _ai.Step(1f);
                if (_debug)
                {
                    DebugPrint(i);
                }
            }
        }
Пример #2
0
 public void Calculate(float scale = 1f)
 {
     _ai.Step(scale);
 }