ОшибОчка помогите
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player1 : MonoBehaviour
{
	public float speed;
	private rigidbody2D rb;
	private Vector2 moveInput;
	private Vector2 moveVelocity;
	void Start ()
	{
		rb = GetComponent<rigidbody2D> ();	
	}
	
	void Update ()
	{
		moveInput = new Vector2 (Input.GetAxisRaw ("Horizontal"), Input.GetAxisRaw ("Vertical"));
		moveVelocity = moveInput.normalized * speed;
	}
		
	void FixedUpdate()	
	{
		rb.MovePosition(rb.position + moveVelocity * Time.fixedDeltaTime);
	}
}
ошибка error CS0118: 'UnityEngine.Component.Rigidbody2D' is a property but a type was expected
9 комментариев