IEnumerator Respawn() { GrabandLaunch grabAndLaunch = transform.GetComponent <GrabandLaunch>(); grabAndLaunch.holding = false; yield return(new WaitForSeconds(1f)); transform.position = new Vector3(27, 15, 16); photonView.RPC("Alive", PhotonTargets.All); }
void Start() { grabAndLaunch = player.GetComponent <GrabandLaunch>(); }