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>(); }
void Awake() { ballScoreManager = GameObject.Find("BallScoreManager").GetComponent <BallScoreManager>(); }