Hey! I can’t understand Unity… It’s telling me following things: Assets/Scripts/Blocks/Chunk2.cs(14,33): error CS0266: Cannot implicitly convert type float' to
int’. An explicit conversion exists (are you missing a cast?)
using UnityEngine;
using System.Collections;
public class Chunk2 : MonoBehaviour {
public float[,,] map;
public float chunkWidth = 20f, chunkHeight = 20f, seed = 0f;
// Use this for initialization
void Start () {
map = new float[chunkWidth, chunkHeight, chunkWidth];
for (float x = 0f; x < chunkWidth; x =+ 0.5f)
{
for (float z = 0f; z < chunkHeight; z =+ 0.5f)
{
map[x , 0, z] = 1f;
}
}
}
}
I can’t find any int… Does anybody understand the error here?
Pls help… Internet does not help at all…
Thanks!