Ejemplo n.º 1
0
    //Generate separated voxel object
    IEnumerator GenerateVoxel(Vector3Int position, int type, float waitTime)
    {
        Voxel voxel = new Voxel(position, type);

        yield return(new WaitForSeconds(waitTime));

        voxel.DestroyVoxel();
    }