hey guys i get this weird error when i use a random.range a vector.
this is my script:
i was random testing something.
using UnityEngine;
using System.Collections;
public class TestingRandom : MonoBehaviour {
float a=0;
float b=0;
float c=0;
public Vector3 test;
// Use this for initialization
void Start () {
test=(Random.Range(-10f,10f),Random.Range(-10f,10f),Random.Range(-10f,10f));
}
// Update is called once per frame
void Update () {
}
}
but i get the error: unexpected symbol ‘,’, expecting ‘)’;
and i get that error on line: test=(Random.Range(-10f,10f),Random.Range(-10f,10f),Random.Range(-10f,10f));
any idea what im doing wrong?