public void Interact() { if (settings == null) { settings = FindObjectOfType <Settings_options>(); } mainCamera.enabled = false; terminalCamera.enabled = true; ActiveComp(false); inputField.ActivateInputField(); active = true; inputField.interactable = true; lang = settings.pLStoryLine; LoadText("back", lang); }
// Start is called before the first frame update void Start() { interaction = FindObjectOfType <InteractionUni>(); terminalCamera.enabled = false; weapon = FindObjectOfType <ChangeWeapon>(); flashLight = FindObjectOfType <FlashLight>(); move = FindObjectOfType <PlayerMove>(); mDoc = FindObjectOfType <MissionDocument>(); eq = FindObjectOfType <EquipmentSystem>(); TextAsset asset = (TextAsset)Resources.Load(@"TerminalSCP\SCPTerminal"); terminalXML = new XmlDocument(); terminalXML.LoadXml(asset.text); textLogo.text = terminalXML.GetElementsByTagName("title")[0].InnerText; settings = FindObjectOfType <Settings_options>(); source = GetComponent <AudioSource>(); LoadText("back", 0); }