Exemple #1
0
    public void ClearData()
    {
        hasBuiltMesh         = false;
        lightGenerationCount = 0;
        meshBuildCount       = 0;
        torchList.Clear();

        collidable.GetComponent <MeshFilter>().sharedMesh    = null;
        notCollidable.GetComponent <MeshFilter>().sharedMesh = null;
        water.GetComponent <MeshFilter>().sharedMesh         = null;
    }
Exemple #2
0
 public void ClearData()
 {
     collidable.GetComponent <MeshFilter>().sharedMesh    = null;
     notCollidable.GetComponent <MeshFilter>().sharedMesh = null;
     water.GetComponent <MeshFilter>().sharedMesh         = null;
 }