void BronColdTime() { int id = Team; int type = soliderType; GameObject Bplayer = PhotonNetwork.Instantiate(Player [type].name, bronpoint [type].transform.position, bronpoint [type].transform.rotation, 0) as GameObject; cam.SetCurrentTragert(Bplayer); DeadPanel.SetActive(false); IsBroning = false; UiManager.Instance.IsBron = true; GetComponent <AudioListener>().enabled = false; }
void GetDamage(int _damage, int ViewId) { Health -= _damage; if (Health <= 0) { if (pv.isMine) { PhotonView.Find(ViewId).RPC("GetKill", PhotonTargets.All, null); PhotonNetwork.player.AddScore(1); CF.SetCurrentTragert(CF.InitGameObject); } gameObject.tag = "Untagged"; die(); } }