void OnCollisionEnter2D(Collision2D coll) { if( hasABall || cannotReceiveBall ) { return; } if (coll.gameObject.tag == "Ball" ) { hasABall = true; ball = coll.gameObject.GetComponent<Ball>(); // ball.OnPossession(this, coll); ball.OnPossession(this, transform.position); GameEventsHandler.BroadcastEvent(EGameEvent.EVT_PLAYER_POSSESS_BALL); if( pc_mvmnt.playerCtrlIndex >= 0 ) { InputHandler.RefreshStart(pc_mvmnt.playerCtrlIndex); } } }