Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Created November 10, 2022 18:51
Show Gist options
  • Save wojciech-bilicki/9b75f507648b772677e2a800af5df0a9 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/9b75f507648b772677e2a800af5df0a9 to your computer and use it in GitHub Desktop.
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