I have recently been working on a game and I am creating a flying concept. Whenever I build the project it says Build: 1 error, 0 warnings Then I click on the message. It then says
Error: Build failed. See the build log for details.
Where is the build log???
Here is my code:
#pragma strict
var cMotor: CharacterMotor; // reference to the CharacterMotor script
function Start(){ // get the CharacterMotor script at Start:
cMotor = GetComponent(CharacterMotor);
}
function Update(){ // move player upwards while F is pressed
if (Input.GetKey(KeyCode.F)){
cMotor.SetVelocity(Vector3.up*6);
}
else if(Input.GetKeyUp(KeyCode.F)){
cMotor.SetVelocity(Vector3.up*0);
}
if(Input.GetKey(KeyCode.G)){
cMotor.SetVelocity(Vector3.down*6);
}
else if(Input.GetKeyUp(KeyCode.G)) {
cMotor.SetVelocity(Vector3.down*0);
}
}
// This do-nothing function is included just to avoid error messages
// because SetVelocity tries to call it
function OnExternalVelocity(){
}
Thanks!