public void OnBallThrown() { debugLines.Clear(); realLines.Clear(); MemorizeBallStartPoint(); currentForesight = 0; Foresight(ballStartPoint, ballStartDirection); if (isLearning) { LearnForesight(ballStartPoint, ballStartDirection); } if (m_EventDispatcher) { m_EventDispatcher.ExecuteOnForesightComplete(debugLines.ToArray(), realLines.ToArray()); } }