protected virtual void Die() { if (isMine) { //networkView.group = (int)Group.Spawn; //networkView.RPC("Die", RPCMode.OthersBuffered); } isdead = true; enabled = false; _TimerA.AddMethod(1000, Spawn); ShowDeath(true); if (isMine) { PLView plv = PLView.pls[killedyby]; plv.networkView.RPC("AddPoint", RPCMode.All, killedyby == Network.player ? -1 : 1); } }
protected override void Start() { //Trace.Log("Start owner" + OwnerID); _LocalPLView = this; networkView.RPC("SetNick", RPCMode.AllBuffered, ConnectGui._This.Nick); }