D
D
DANICH702021-03-13 19:18:58
C++ / C#
DANICH70, 2021-03-13 19:18:58

How to solve these errors with rand?

Have a question how to fix it? <
604ce5b8f0c74276098560.jpeg

private float textimer;
    public float time = 3f;
    public GameObject govno;
    private bool provoda = true;
    public float s;
    public float r;


    float res = rand.Next(array.Length);

    private Vector3[] coords = new Vector3[3] { new Vector3(-4.39f, 5.83f, 90.4f), new Vector3(-1.7f, 5.83f, 90.4f), new Vector3(0.52f, 5.83f, 90.4f) };

    IEnumerator Da()
    {
        while (provoda==true)
        {
            int randomNumber = Random.Range(0, coords.Length);
            Instantiate(Object, coords[randomNumber]);
        }
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-03-13
@freeExec

As well as problems with
float res = blabla.Trututu(array.Length);
No you have none rand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question