Browse Source

Changed respawn function so that you will always respawn at ground level, after some weirdness with respawning on top of crystals.

master
s3607057 (Angus Niven) 5 years ago
parent
commit
d49588727e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Assets/Scripts/Character.cs

+ 1
- 1
Assets/Scripts/Character.cs View File

@ -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;

Loading…
Cancel
Save