ref参数 使用ref参数,在方法执行完成后,对参数的改变可以反映到变量上去 测试: private void Start() { int a = 0, b = 0; test(ref a, b); Debug.<