Necesito que por favor alguien me explique que hace este archivo de javascript
Publicado por Jaime (1 intervención) el 21/05/2017 19:50:24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma strict
var Dinero = 0;
var Script : Contador;
function Start () {
}
function Update () {
}
function OnTriggerEnter(Fps : Collider){
if(Fps.gameObject.tag == "Fps"){
Script.Contador += Dinero;
Invoke("Destruccion",0.1);
}
}
function Destruccion(){
Destroy(gameObject);
}
Valora esta pregunta
0