Hi,
Iam start playing with Random.Range
int RandomVariable;
void Start (){
RandomVariable = Random.Range (0,4);
}
but I have still this error: Random' does not contain a definition for
Range’
Can someone help me please?
Thank to all.
Hi,
Iam start playing with Random.Range
int RandomVariable;
void Start (){
RandomVariable = Random.Range (0,4);
}
but I have still this error: Random' does not contain a definition for
Range’
Can someone help me please?
Thank to all.
is there a reference to the Unity.Engine?
hm I dont know if I understand you right but I have:
using UnityEngine;
using System.Collections;
Don’t call your script the same thing as Unity classes.
–Eric
now it is work
int RandomVariable;
void Start (){
RandomVariable = UnityEngine.Random.Range (0,4);
}
Thank’s for the answer)