Hi guys!
Have a little problem - can’t move my object (your tutorial about space shooter)
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour
{
public float speed;
void FixedUpdate ()
{
float moveHor = Input.GetAxis("Horizontal");
float moveVer = Input.GetAxis("Vertical");
Rigidbody rb = GetComponent<Rigidbody>();
Vector3 move = new Vector3 (moveHor, 0.0f, moveVer);
velocity = move * speed;
}
}