//[PunRPC] private void netDie() { CBUG.Do("DIED!"); dieSound.Play(); isDead = true; ArmLeft.transform.SetParent(null); ArmLeft.GetComponent <Rigidbody>().isKinematic = false; ArmLeft.GetComponent <BoxCollider>().isTrigger = false; ArmRight.transform.SetParent(null); ArmRight.GetComponent <BoxCollider>().isTrigger = false; ArmRight.GetComponent <Rigidbody>().isKinematic = false; Body.transform.SetParent(null); Body.GetComponent <Rigidbody>().isKinematic = false; Head.transform.SetParent(null); Head.GetComponent <Rigidbody>().isKinematic = false; }
private void localDie() { //_Help.ToggleDeathPanel(); //PhotonNetwork.Destroy(myPhotonView); ArmLeft.transform.SetParent(null); ArmLeft.SetActive(true); ArmLeft.GetComponent <Rigidbody>().isKinematic = false; ArmLeft.GetComponent <BoxCollider>().isTrigger = false; ArmRight.transform.SetParent(null); ArmRight.GetComponent <BoxCollider>().isTrigger = false; ArmRight.GetComponent <Rigidbody>().isKinematic = false; ArmRight.SetActive(true); Body.transform.SetParent(null); Body.GetComponent <Rigidbody>().isKinematic = false; Body.SetActive(true); Head.transform.SetParent(null); Head.GetComponent <Rigidbody>().isKinematic = false; Head.SetActive(true); }