Refactor MathUtil out of BattleController
This commit is contained in:
parent
60e8d2e3e0
commit
db92332783
3 changed files with 17 additions and 5 deletions
5
Assets/Common/MathUtil.cs
Normal file
5
Assets/Common/MathUtil.cs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
public static class MathUtil {
|
||||
public static int TrueMod(int a, int b) {
|
||||
return (a % b + b) % b;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue