[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();
|
StickToPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void DontStick()
|
||||||
|
{
|
||||||
|
stickToGround = false;
|
||||||
|
}
|
||||||
void MouseControl()
|
void MouseControl()
|
||||||
{
|
{
|
||||||
float mouseInputX = Input.GetAxis("Mouse X") * mouseSensitivity;
|
float mouseInputX = Input.GetAxis("Mouse X") * mouseSensitivity;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user