[FIX] Lurch respawn
Fixed issues with respawning the lurch when sticking to ground
This commit is contained in:
@@ -82,6 +82,10 @@ public class LurchMovement : MonoBehaviour {
|
||||
StickToPoint();
|
||||
}
|
||||
|
||||
public void DontStick()
|
||||
{
|
||||
stickToGround = false;
|
||||
}
|
||||
void MouseControl()
|
||||
{
|
||||
float mouseInputX = Input.GetAxis("Mouse X") * mouseSensitivity;
|
||||
|
||||
@@ -114,6 +114,7 @@ public class LurchRespawn : MonoBehaviour {
|
||||
public void RespawnLurch(string message = "Lurch respawned")
|
||||
{
|
||||
Debug.LogWarning("Lurch respawned: " + message);
|
||||
compLurchMovement.DontStick();
|
||||
lurch.transform.position = lastRespawnPoint.transform.position;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user