I’m geting errors on compilation, that appeared after I updated Unity from the developer preview to the actual 3.5 version. I think they arise because I use signs that aren’t in the english alphabet. I tested this theory and it seems correct. But I wanted to know if there is a way I can use signs that aren’t in the english alphabet without having to download the preview version again.
The errors:
Assets/CameraFollow.cs(7,25): error CS1519: Unexpected symbol `<internal>' in class, struct, or interface member declaration
Assets/CameraFollow.cs(7,27): error CS1519: Unexpected symbol `<internal>' in class, struct, or interface member declaration
Assets/CameraFollow.cs(7,30): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
Assets/CameraFollow.cs(8,27): error CS1519: Unexpected symbol `<internal>' in class, struct, or interface member declaration
Assets/CameraFollow.cs(8,50): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
Assets/CameraFollow.cs(23,108): error CS1526: A new expression requires () or [] after type
The Code:
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class CameraFollow : MonoBehaviour {
public float _Výška;
public float _VzdálenostKameryZaPostavou;
public Movement _Movement;
// Use this for initialization
void Start() {
}
// Update is called once per frame
void LateUpdate() {
if(_Movement.Postava == null)
return;
if(_Movement.Postava.transform == null)
return;
this.camera.transform.position = _Movement.Postava.transform.position + new Vector3( 0, _Výška, - _VzdálenostKameryZaPostavou );
}
}