From d49588727e9360587ce1fa0d9a44de40fd371ec7 Mon Sep 17 00:00:00 2001 From: "s3607057 (Angus Niven)" Date: Thu, 17 Oct 2019 18:55:01 +1100 Subject: [PATCH] Changed respawn function so that you will always respawn at ground level, after some weirdness with respawning on top of crystals. --- Assets/Scripts/Character.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Character.cs b/Assets/Scripts/Character.cs index 32d26e9..8a25a5a 100644 --- a/Assets/Scripts/Character.cs +++ b/Assets/Scripts/Character.cs @@ -226,7 +226,7 @@ public class Character : MonoBehaviour //Having found our target block, we move the character there if (respawnPosition != null) { - this.transform.position = respawnPosition.VisualPosition; + this.transform.position = new Vector3(respawnPosition.VisualPosition.x, 0.5f, respawnPosition.VisualPosition.z); this.respawnNeeded = false; this._currentBlock = respawnPosition; respawnPosition.CurrentPlayer = this;