I’m trying to make an object move at randomized speeds. I get this erroer :
error CS0119: Expression denotes a type', where a variable’, value' or method group’ was expected
When trying to do that with this code:
using UnityEngine;
using System.Collections;
public class Star_Script : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float Speed = Random * Time.deltaTime;
transform.Translate(Vector3.right * Speed);
}
}
any ideas?