You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System; |
|
|
|
public class ValueGenerator |
|
{ |
|
int Value = 0; |
|
float ValueFloat = 0f; |
|
public int GenerateValue(){ |
|
Value ++; |
|
if(Value>10){ |
|
Value = 0; |
|
} |
|
return Value; |
|
} |
|
|
|
public float GenerateFValue(){ |
|
ValueFloat += 0.1f; |
|
if(ValueFloat>10){ |
|
ValueFloat = 0; |
|
} |
|
return ValueFloat; |
|
} |
|
}
|
|
|