Created
November 10, 2022 18:51
-
-
Save wojciech-bilicki/9b75f507648b772677e2a800af5df0a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEngine.Serialization; | |
public class Movement : MonoBehaviour | |
{ | |
[SerializeField] private float speed = 8f; | |
private Vector2 _currentVelocity; | |
private Rigidbody2D _rigidbody; | |
private void Awake() | |
{ | |
_rigidbody = GetComponent<Rigidbody2D>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment