07-01-2013, 11:09 PM
(07-01-2013, 05:15 PM)war10hacker Ha scritto: @rrolla - lo script non funge, unity dice "Can't add script behaviour Movement. The script file does not match the name of the class defined in the script!" Ho appena iniziato ad usare questo engine quindi vi cheiderò piuttosto molte coseLo scriptlo ho chiamato Moviment effettivamente non è in inglese corretto:-)
ecco lo script corretto
Codice:
using UnityEngine;
using System.Collections;
public class Movement : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.position += new Vector3(5 * Time.deltaTime, 5 * Time.deltaTime, 0);
}
}