void LoadUrl(string URL) { browersScript = VaribleHolderScript.browersScript; Debug.Log("LoadingURL"); WebPageLoadTimer++; if (WebPageLoadTimer == 2) { if (browersScript.bScript._url != URL) { browersScript.bScript.LoadURL(URL, true); } WebPageLoadTimer = 0; } }
public void Start() { myUrl = "www.google.com"; if (!isLocalPlayer) { VaribleHolderScript = GameObject.Find("VaribleHolder").GetComponent <VaribleHolder>(); Modeling3DCam = VaribleHolderScript.Modeling3DCam; ModelingUICam = VaribleHolderScript.ModelingUICam; Modeling3DUI = VaribleHolderScript.Modeling3DUI; MainCam = GetComponent <Controls>().directionObject.GetComponent <Camera>(); GameObjSelectMenu3D = VaribleHolderScript.GameObjSelectMenu3D; GameObjSelectMenuUI = VaribleHolderScript.UIObjSelect; ModelingUI = GetComponent <ModelingUI>().gameObject; Modeling3DObj = VaribleHolderScript.Modeling3DObj; MainCanvas = VaribleHolderScript.MainCanvas; HUD = VaribleHolderScript.HUD; browersScript = VaribleHolderScript.browersScript; InteractImage = VaribleHolderScript.InteractImage; InteractImage2 = VaribleHolderScript.InteractImage2; Projecter = VaribleHolderScript.Projecter; //OnlyRaycasetVersion // MainCam = VaribleHolderScript.MainCam; GameObject.Find("ShowOthers").GetComponent <Button>().onClick.AddListener(() => ShowOthers()); TextBox = VaribleHolderScript.TextBox; WhiteBoards = VaribleHolderScript.WhiteBoards; for (int i = 0; i < WhiteBoards.Length; i++) { // TextBox.GetComponent<TMPro.TMP_InputField>().onEndEdit.AddListener(delegate { CmdUpdateWhiteBoardText(TextBox.GetComponent<TMPro.TMP_InputField>().text, WhiteBoards[i]); }); } this.enabled = false; } else { VaribleHolderScript = GameObject.Find("VaribleHolder").GetComponent <VaribleHolder>(); Modeling3DCam = VaribleHolderScript.Modeling3DCam; ModelingUICam = VaribleHolderScript.ModelingUICam; Modeling3DUI = VaribleHolderScript.Modeling3DUI; MainCam = GetComponent <Controls>().directionObject.GetComponent <Camera>(); GameObjSelectMenu3D = VaribleHolderScript.GameObjSelectMenu3D; GameObjSelectMenuUI = VaribleHolderScript.UIObjSelect; ModelingUI = VaribleHolderScript.ModelingUI; Modeling3DObj = VaribleHolderScript.Modeling3DObj; MainCanvas = VaribleHolderScript.MainCanvas; HUD = VaribleHolderScript.HUD; browersScript = VaribleHolderScript.browersScript; InteractImage = VaribleHolderScript.InteractImage; InteractImage2 = VaribleHolderScript.InteractImage2; Projecter = VaribleHolderScript.Projecter; // GameObject.Find("ShowOthers").GetComponent<Button>().onClick.AddListener(() => TestUrl()); GameObject.Find("ShowOthers").GetComponent <Button>().onClick.AddListener(() => ShowOthers()); //OnlyRaycasetVersion // MainCam = VaribleHolderScript.MainCam; TextBox = VaribleHolderScript.TextBox; WhiteBoards = VaribleHolderScript.WhiteBoards; for (int i = 0; i < WhiteBoards.Length; i++) { // TextBox.GetComponent<TMPro.TMP_InputField>().onEndEdit.AddListener(delegate { CmdUpdateWhiteBoardText(TextBox.GetComponent<TMPro.TMP_InputField>().text, WhiteBoards[i]); }); } } // InteractImage.SetActive(false); // InteractImage2.SetActive(false); }
public void ShowOthers() { browersScript = GameObject.Find("desk").GetComponent <MyBrowser>(); CmdUpdateURL(browersScript.bScript.Url); }