Skip to content

Commit 04b01ea

Browse files
committed
方法重命名
1 parent 53c45ce commit 04b01ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CrazyCar/Assets/Scripts/Game/MPlayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void FixedUpdate() {
118118
}
119119
}
120120

121-
public void AdjustPlayerPosition(Vector3 pos, Vector3 speed) {
121+
public void AdjustPosition(Vector3 pos, Vector3 speed) {
122122
if (isLockSpeed) {
123123
return;
124124
}

CrazyCar/Assets/Scripts/System/PlayerManagerSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private void AdjustPeerPlayer(PlayerStateMsg playerStateMsg) {
105105
}
106106
});
107107
} else {
108-
peer.AdjustPlayerPosition(playerStateMsg.pos, playerStateMsg.speed);
108+
peer.AdjustPosition(playerStateMsg.pos, playerStateMsg.speed);
109109
}
110110
}
111111

0 commit comments

Comments
 (0)