public void SetMatchScore(int scoreValue, int speedValue) { if (mDynamicsOnly == true) { DynamicsHandler _dynamicsHandlerScript = getDynamicsHandlerClass(); _dynamicsHandlerScript.SetMatchScore(scoreValue, speedValue); } else { FuelHandler _fuelHandlerScript = getFuelHandlerClass(); _fuelHandlerScript.SetMatchScore(scoreValue, speedValue); } }