Example #1
0
    ANN ann; //the ANN this Brain is using - the core of this whole script

    //GameObject initialization
    void Start()
    {
        ann = new ANN(6, 1, 2, 5, alpha);
        ballScoreManager = GameObject.Find("BallScoreManager").GetComponent <BallScoreManager>();
        brb = ball.GetComponent <Rigidbody2D>();
    }
Example #2
0
 void Awake()
 {
     ballScoreManager = GameObject.Find("BallScoreManager").GetComponent <BallScoreManager>();
 }