update
This commit is contained in:
parent
0e6a41a259
commit
dfd649ba65
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ class Network{
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
died(id){
|
died(id, killerId){
|
||||||
this.socket.send(JSON.stringify({type:"died",data:{id: id}}));
|
this.socket.send(JSON.stringify({type:"died",data:{id: id, killerId: killerId}}));
|
||||||
}
|
}
|
||||||
|
|
||||||
update(obj){ //send data to server in order to broadcast
|
update(obj){ //send data to server in order to broadcast
|
||||||
|
|
Loading…
Reference in a new issue