Fixed switching

This commit is contained in:
2021-07-20 19:12:51 +02:00
parent 362b213e48
commit d1ea9e8652
4 changed files with 136 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ using UnityEngine.Events;
public class CharacterController2D : MonoBehaviour
{
[SerializeField] private float m_JumpForce = 400f; // Amount of force added when the player jumps.
public float m_JumpForce = 400f; // Amount of force added when the player jumps.
[Range(0, .3f)] [SerializeField] private float m_MovementSmoothing = .05f; // How much to smooth out the movement
[SerializeField] private bool m_AirControl = false; // Whether or not a player can steer while jumping;
[SerializeField] private LayerMask m_WhatIsGround; // A mask determining what is ground to the character