Wait you ripped them off bf3? dude is it ok if I use this in my game? Because I am going to distribute this game commercially idk want any sues due to copyright?
Code:
#pragma strict
function Start () {
GetComponent.<Camera>().fieldOfView= 50f;
}
function Update () {
if(Input.GetButton("Fire2")){
GetComponent.<Camera>().fieldOfView= 18f;
}
if(Input.GetButton("Fire2") == false){
GetComponent.<Camera>().fieldOfView= 50f;
}
}
|
|