public void DeactivatePotatoEffects(int driverId, int gunnerId)
    {
        foreach (Transform t in teslaCoils)
        {
            GameObject wreck = teslaWreck;
            wreck.transform.localScale = t.lossyScale;
            GameObject a = Instantiate(wreck, t.position, t.rotation);
        }
        animation.clip = deactivateAnimation;
        animation.Play();
        activatedLoopSource.Stop();
        activationSource.PlayOneShot(deactivationAudio);

        lightning1.enabled = false;
        lightning1.GetComponent <LineRenderer>().enabled = false;

        lightning2.enabled = false;
        lightning2.GetComponent <LineRenderer>().enabled = false;



        if (driverId == PhotonNetwork.LocalPlayer.ActorNumber || gunnerId == PhotonNetwork.LocalPlayer.ActorNumber)
        {
            PotatoUi pui = FindObjectOfType <PotatoUi>();
            pui.SetText(false);
        }
        else
        {
            foreach (var mat in mats)
            {
                mat.shader = regShader;
            }
        }
    }
    public void ActivatePotatoEffects(int driverId, int gunnerId)
    {
        animation.clip = activateAnimation;
        animation.Play();
        activationSource.PlayOneShot(activationAudio);
        activatedLoopSource.clip = activatedLoop;
        activatedLoopSource.Play();
        lightning1.enabled = true;
        lightning1.GetComponent <LineRenderer>().enabled = true;
        lightning2.enabled = true;
        lightning2.GetComponent <LineRenderer>().enabled = true;


        if (driverId == PhotonNetwork.LocalPlayer.ActorNumber || gunnerId == PhotonNetwork.LocalPlayer.ActorNumber)
        {
            PotatoUi pui = FindObjectOfType <PotatoUi>();
            pui.SetText(true);
        }
        else
        {
            foreach (var mat in mats)
            {
                mat.shader = hpShader;
            }
        }
    }