void OnTriggerEnter2D(Collider2D col) { ball = col.gameObject.GetComponent <BallController>(); if (catchBall && ball && !holdingBall) { holdingBall = true; ball.Caught(this); } if (isAI) { aIHitCount++; print(aIHitCount); } }
void OnTriggerEnter2D(Collider2D col) { ball = col.gameObject.GetComponent <BallController>(); if (catchBall && ball && !holdingBall) { holdingBall = true; ball.Caught(this); } if (isAI) { aIHitCount++; print(aIHitCount); } }