var playerPrefab : Transform;
function OnGUI()
{
if (GUI.Button(Rect(10,70,50,30),"Click"))
{
//if (networkView.isMine)
// {
Network.Instantiate(playerPrefab, transform.position, transform.rotation, 0);
//}
}
}
function OnPlayerDisconnected (player : NetworkPlayer)
{
Debug.Log("Server destroying player");
Network.RemoveRPCs(player, 0);
Network.DestroyPlayerObjects(player);
}