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);
    }
Esempio n. 2
0
 void Start()
 {
     grabAndLaunch = player.GetComponent <GrabandLaunch>();
 }