// Use this for initialization void Start() { PlayerAmmo = FindObjectOfType <Ammunition>(); interaction = FindObjectOfType <InteractionUni>(); ammoAmount = Random.Range(1, 3); dialog = FindObjectOfType <DialogText>(); control = FindObjectOfType <BinController>(); }
// 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); }