if(TNManager.isHosting && health <= 0)
{
// Die if no health left
tno.Send ("NetworkDestroyObject", Target.AllSaved);
}
[RFC]
public void NetworkDestroyObject()
{
Debug.Log("Killobject d Received");
if (TNManager.isHosting)
{
TNManager.Create(ragdollPrefab, this.transform.position, this.transform.rotation);
//Debug.Log("Hosted object should be destroyed!");
TNManager.Destroy(this.gameObject);
//Destroy(gameObject);
}
}