Method not adding values as I want it to

前端 未结 0 669
南旧
南旧 2020-11-30 00:36
private void AddValueToTarget(int target, int amount){
target += amount;
}

Simple right? well, when I call the method and use it, it does nothing.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题