Hello.
Any ideas why, when I try to generate random number between 0 and 1 by using Unity’s Random class:
// Code is stripped to show only problematic area.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CCameraOrbit : MonoBehaviour {
void LateUpdate()
{
float r = Random.value;
}
}
It returns me an error:
Scripts/CCameraOrbit.cs(151,42): error CS0117: Random' does not contain a definition for value’