Can I do recursion in unity3d using javascript?
Here is my code:
function Start () {
RefreshPing();
}
function RefreshPing():void{ //call ever 5 sec
if(Network.isServer){
for(var i:int=0;i<64;i++){
if(PlayerBool*){*
_ var j : int=Network.GetAveragePing(GameingNetWorkPlayer*);_
_ networkView.RPC (“NewPing”,RPCMode.All,i,j);_
_ }_
_ }_
_ }_
_ yield WaitForSeconds(5);_
_ RefreshPing();_
_}*_