if (Lives<=0 !Dead){
Debug.Break();
//the entire Unity3D editor crashes before I get here, it never breaks.
Debug.Log("ok, does this at least work?");
//so, this doesn't get called.
var whatthef:GameObject = GameObject.FindWithTag("NetCom");
if (whatthef==null){
Debug.Log("F***");
//this never happens, because the NetCom exists.
}
whatthef.networkView.RPC("UpdateLives",RPCMode.All,Lives);
//if i take this out, it doesnt crash
}
This code runs in my player’s update loop.
I’m so confused and annoyed right now, I have no idea what to do next.
If I remove that last line, it breaks at the second line like it should. With the line there, Unity crashes.