// Start is called before the first frame update void Start() { GM = GameObject.Find("GameManager").GetComponent <GameManager>(); SC.setSens(GM.GetSens()); VialCount.text = string.Format("{0:N0}", VialsLeft) + "/5"; MessagePlayer.text = "Find All 5 Vials and the Key"; MessagePlayer.gameObject.SetActive(true); StartCoroutine(DisableAfterTime(3f, MessagePlayer.gameObject)); StartCoroutine(StartParasite()); audioSource = GetComponent <AudioSource>(); this.fixedDeltaTime = Time.fixedDeltaTime; }
// Start is called before the first frame update void Start() { GM = GameObject.Find("GameManager").GetComponent <GameManager>(); SC.setSens(GM.GetSens()); Timer.text = string.Format("{0:N0}", TimeLeft); MessagePlayer.text = "Survive for two minutes while the door is opened!"; MessagePlayer.gameObject.SetActive(true); StartCoroutine(DisableAfterTime(3f, MessagePlayer.gameObject)); StartCoroutine(StartParasite()); audioSource = GetComponent <AudioSource>(); this.fixedDeltaTime = Time.fixedDeltaTime; }