コード例 #1
0
    // Use this for initialization
    protected override void Start()
    {
        base.Start();

        inputs = new List <float>();
        // BallStartPoint
        inputs.Add(0f);
        inputs.Add(0f);
        // BallStartDirection
        inputs.Add(0f);
        inputs.Add(0f);
        ann = GetComponent <AINeuralNetwork>();

        debugLines = new List <DebugLine>();
        realLines  = new List <DebugLine>();

        GameMgr.Instance.Ball.OnBallThrown        += OnBallThrown;
        GameMgr.Instance.Ball.OnBallCollidePaddle += OnBallCollidePaddle;
    }
コード例 #2
0
 public Perceptron(AINeuralNetwork newNetwork)
 {
     inputs  = new List <Input>();
     network = newNetwork;
 }