From b0f6c6df9e8ae1688646ab8c8934708123e4e979 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 4 Jan 2021 08:27:46 +0800 Subject: =?UTF-8?q?*=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assembly-CSharp/PlayerPhysics.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Client/Assembly-CSharp/PlayerPhysics.cs') diff --git a/Client/Assembly-CSharp/PlayerPhysics.cs b/Client/Assembly-CSharp/PlayerPhysics.cs index c35e21d..c751f0d 100644 --- a/Client/Assembly-CSharp/PlayerPhysics.cs +++ b/Client/Assembly-CSharp/PlayerPhysics.cs @@ -212,7 +212,7 @@ public class PlayerPhysics : InnerNetObject base.transform.position = spawnPos + new Vector3(amFlipped ? -0.3f : 0.3f, -0.24f); this.ResetAnim(false); Vector2 b = (-spawnPos).normalized; - yield return this.WalkPlayerTo(spawnPos + b, 0.01f); + yield return this.WalkPlayerTo((Vector2)spawnPos + b, 0.01f); this.myPlayer.Collider.enabled = true; KillAnimation.SetMovement(this.myPlayer, true); this.myPlayer.nameText.gameObject.SetActive(true); @@ -267,7 +267,7 @@ public class PlayerPhysics : InnerNetObject do { Vector2 vector2; - Vector2 vector = vector2 = worldPos - base.transform.position; + Vector2 vector = vector2 = worldPos - (Vector2)base.transform.position; if (vector2.sqrMagnitude <= tolerance) { break; -- cgit v1.1-26-g67d0