void SpawnTarget()
    {
        int             index  = Random.Range(0, targets.Count);
        TargetBehaviour target = targets[index];

        target.ShowTarget();
    }
Example #2
0
    void SpawnTarget()
    {
        int             idx    = Random.Range(0, targets.Count);//Genera un nĂºmero aleatorio entre 0 y targets.Count -1
        TargetBehaviour target = targets[idx];

        target.ShowTarget();
    }
Example #3
0
    void SpawnTarget()
    {
        // Get a random target
        int             index  = Random.Range(0, targets.Count);
        TargetBehaviour target = targets[index];

        // Show it
        target.ShowTarget();
    }