jump-game/Jump Game/Assets/Scripts/Player/Player.cs

17 lines
343 B
C#
Raw Normal View History

2020-04-29 21:04:48 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public static Rigidbody2D rbody;
public static float movementSpeed;
public static float jumpForce;
void Start()
{
rbody = GameObject.FindWithTag("Player").GetComponent<Rigidbody2D>();
}
}