亲测可用,导进去两处代码报错,修改之后如下:GetComponent.()["run"].normalizedSpeed=runSpeedScale;GetComponent.()["walk"].normalizedSpeed=walkSpeedScale;