fixed: player jittering and death sliding
This commit is contained in:
		@@ -7,7 +7,7 @@ using TMPro;
 | 
			
		||||
public class DebugSceneSwitcher : MonoBehaviour
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    void Start() {
 | 
			
		||||
    void Awake() {
 | 
			
		||||
         if (!GameObject.Find("StateController").GetComponent<StateController>().inDebugMode) {
 | 
			
		||||
            Destroy(this.gameObject);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -80,6 +80,8 @@ public class PlayerMovement : MonoBehaviour
 | 
			
		||||
    {
 | 
			
		||||
        if (playerBehavior.playerIsAlive) {
 | 
			
		||||
            this._moveInput = value.Get<Vector2>();
 | 
			
		||||
        } else {
 | 
			
		||||
            this._moveInput = Vector2.zero;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user