// Update is called once per frame void Update() { if (_Local == null) { _Local = GameObject.FindObjectOfType <localMang>(); } Rockets(); if (Last_Health != Health) { //object[] Datavalues = new object[Health]; Debug.Log("Gone in Health Change"); photonView.RPC("RCP_Set_Health", RpcTarget.All, Health); } if (Health <= 0) { if (photonView.IsMine) { deathcount = deathcount + 1; GameObject.FindObjectOfType <UIManager>().Killtext.text = "Deaths:" + deathcount.ToString(); _Local.Respawn(); } } }
void Start() { if (_Local == null) { _Local = GameObject.FindObjectOfType <localMang>(); } }