Exemple #1
0
    public void GenerateWorldVoxels(System.Action <Voxel> action)
    {
        UnityEngine.Profiling.Profiler.BeginSample("GenerateWorldVoxels: " + action.ToString());

        for (int x = 0; x < ChunksWide; ++x)
        {
            for (int y = 0; y < ChunksHigh; ++y)
            {
                for (int z = 0; z < ChunksDeep; ++z)
                {
                    VoxelWorldChunk chunk = Chunks[x, y, z];

                    GenerateChunkVoxels(chunk, action);
                }
            }
        }

        UnityEngine.Profiling.Profiler.EndSample();
    }
 public override string GetKeyString()
 {
     return(base.GetKeyString() + ":" + performAction.ToString());
 }
 public override string ToString()
 {
     return("<" + startTime + ":" + duration + ">" + ((tween != null) ? tween.ToString() : action.ToString()));
 }