Hello guys,
sorry, I am a bad programmer and ill and probably shoulg go to bed right away.
Why do I get a CS0266: Cannot implicitly convert type float' to int’. An explicit conversion exists (are you missing a cast?) for this:
Tileset[x,z].transform.localScale = new Vector3(1.0f, 1.0f, 0.85f);
Many thanks!
Edit:
More interestingly I get this error 10 times (!) all pointing to these 3 lines of code:
Tileset[x,z].transform.localScale = new Vector3((float)1.0f, (float)1.0f, (float)0.85f);
Vector3 temp_Vec = new Vector3(Tileset[x,z].transform.position.x, Tileset[x,z].transform.position.y, Tileset[x,z].transform.position.z);
Tileset[x,z].transform.position = new Vector3(-3.0f,temp_Vec.y, temp_Vec.z);
Also confusing to me: The same code is used in the same script once more a few hundret lines above. Any hints?