public void GetIntoPortal(Portal p, int portalNumber)
    {
        EnableScripts(false);
        SetTrapKillStatus.canTrapKill = false;
        mat.SetInt("_VoidActive", 1);
        playerMat.SetInt("_IsShaderActive", 1);
        voidTrail.SetActive(true);
        speedLines.SetActive(true);
        usingPortal = true;
        anim.SetBool("Portalling", true);
        portalScript = p;
        portalScript.inUse++;
        GameObject.FindObjectOfType <PortalLimiter>().UpdateRecentlyUsedPortal(portalScript);
        va.ActivateSound();

        if (portalNumber == 1)
        {
            iterateNormally = true;
            currPosElement  = 0;
        }
        else
        {
            iterateNormally = false;
            currPosElement  = portalScript.posList.Count - 1;
        }
    }
 void ActivateVoid(bool val)
 {
     inVoid = val;
     if (val)
     {
         mat.SetInt("_VoidActive", 1);
         playerMat.SetInt("_IsShaderActive", 1);
         lerper           = 0;
         interpolationVal = 1;
         speedLines.SetActive(val);
         voidTrail.SetActive(val);
         va.ActivateSound();
     }
     else
     {
         mat.SetInt("_VoidActive", 0);
         playerMat.SetInt("_IsShaderActive", 0);
         lerper           = 0;
         interpolationVal = 2;
         speedLines.SetActive(val);
         va.DeactivateSound();
         if (!GetComponent <DropPortal>().isCreatingPortal)
         {
             voidTrail.SetActive(val);
         }
     }
 }