예제 #1
0
    private void RotateBallAfterReflection(GameObject ball, float angle)
    {
        BallPoverupsEvent ballPoverupsEvent = ball.GetComponent <BallPoverupsEvent>();
        BallMovement      ballMovement      = ball.GetComponent <BallMovement>();

        ballPoverupsEvent.lastTouchedBy = gameObject;
        ballMovement.RotateBallWithRandomModification(angle);
        if (playManager.gameInProgres)
        {
            ballMovement.IncreaseBallSpeed(playerProperties.reflectionStrenght);
        }
    }