Merging level design 2 into master #8

Merged
JanGross merged 7 commits from level_detail_bc into master 2018-09-02 21:08:09 +02:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit a33228238f - Show all commits

View File

@@ -82,6 +82,10 @@ public class LurchMovement : MonoBehaviour {
StickToPoint(); StickToPoint();
} }
public void DontStick()
{
stickToGround = false;
}
void MouseControl() void MouseControl()
{ {
float mouseInputX = Input.GetAxis("Mouse X") * mouseSensitivity; float mouseInputX = Input.GetAxis("Mouse X") * mouseSensitivity;

View File

@@ -114,6 +114,7 @@ public class LurchRespawn : MonoBehaviour {
public void RespawnLurch(string message = "Lurch respawned") public void RespawnLurch(string message = "Lurch respawned")
{ {
Debug.LogWarning("Lurch respawned: " + message); Debug.LogWarning("Lurch respawned: " + message);
compLurchMovement.DontStick();
lurch.transform.position = lastRespawnPoint.transform.position; lurch.transform.position = lastRespawnPoint.transform.position;
} }