// Use this for initialization void Awake() { escMenu = GameObject.Find("Escape Menu Handler").GetComponent <escapeMenu>(); tp = GetComponent <TeleportationV2>(); passRaycast = passRaycast | ignoreRaycast; passRaycast = ~passRaycast; }
void Start() { tp = GetComponent <TeleportationV2>(); targetTransform = GameObject.Find("TargetPosition").transform; bluePortal = GameObject.FindGameObjectWithTag("BluePortal"); orangePortal = GameObject.FindGameObjectWithTag("OrangePortal"); }