Beispiel #1
0
 IEnumerator waitToInitialize()
 {
     while (biome.biomeMap == null)
     {
         yield return(new WaitForEndOfFrame());
     }
     playerCC  = vxe.getChunkCoords(playerTrans.position);
     mybiome   = biome.getBiomeFromCoords(playerCC);
     prevBiome = mybiome;
     switchBiomeAudio(mybiome);
 }
Beispiel #2
0
    /// <summary>
    /// Gets environment list based on biome.
    /// </summary>
    /// <returns>The environment list based on biome.</returns>
    /// <param name="Pos">Position.</param>
    GameObject[] GetEnvironmentListBasedOnBiome(Vec3Int Pos)
    {
        return(getAssetListBasedOnBiome((biome.getBiomeFromCoords(Pos))));

        //return getNextEnvironmentGameObject (biome.biomeMap [Pos.x, Pos.z]);
    }