private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == BallDefine.TagOfWall) { if (m_ballMove.StateOfBall == BallDefine.BallStateDefine.BallStateDefine_Blue) { //2p getscore ScoreComp.ScoredByRed(); } else if (m_ballMove.StateOfBall == BallDefine.BallStateDefine.BallStateDefine_Red) { //1p getscore ScoreComp.ScoredByBlue(); } else { m_ballMove.RandPlayerPenalty(); } } }