public void GetCurrentConfigs(bool def = false) { // Control RightJ1 = NativeFunction.getPd1(); RightJ2 = NativeFunction.getPd2(); LeftJ1 = NativeFunction.getPg1(); LeftJ2 = NativeFunction.getPg2(); SpringKey = NativeFunction.getRes(); // Game BallCount = NativeFunction.getNbBilles(); DoubleBallMode = NativeFunction.getMode2Billes(); // Debug IncrReboundForce = NativeFunction.getForceRebond(); ShowDebug = NativeFunction.getDebog(); ShowBallGeneration = NativeFunction.getGenBille(); ShowCollisionSpeed = NativeFunction.getVitBilles(); ShowLighting = NativeFunction.getEclairage(); ShowPortalAttraction = NativeFunction.getLimitesPortails(); // check for first time /*if (BallCount < 0 && !def) * { * NativeFunction.toucheDefaut(); * GetCurrentConfigs(true); * }*/ }