Ejemplo n.º 1
0
    private GameObject InstantiateDebris()
    {
        int index = Random.Range(0, debrisPrefabs.Count);

        GameObject debrisObject = (GameObject)Instantiate(debrisPrefabs[index]);

        debrisObject.transform.position = RandomPosition.Get();

        return(debrisObject);
    }