//This should return the percentage to multiply with the bet. It could be negative multiplier. private float ResolveRestingSliceValue(int _restingSlice) { //Get the user value to multiply it with the bet. return(WheelJsonHelper.GetWheelSlicesFromString(tempWheel.AllWheelSlices)[_restingSlice].userData.SliceMultiplier); }
private int GetNextRestingWheelSlice() { //Converts slices in a string to a json then deserializes and then based on the probability of each it retruns an int. return(RndGen.probabilityBasedRnd(WheelJsonHelper.GetWheelSlicesFromString(tempWheel.AllWheelSlices) .Select <WheelSliceContainer, string>(x => x.probability.ToString()).ToArray())); }