// Use this for initialization void Start() { theTextBox = FindObjectOfType <TextBoxManL2>(); GetComponent <AudioSource>().playOnAwake = false; GetComponent <AudioSource>().clip = saw; }
// Use this for initialization void Start() { player = FindObjectOfType <Movement>(); rb = GetComponent <Rigidbody>(); box = FindObjectOfType <TextBoxManL2>(); timeStamp = Time.time + coolDown; walk = FindObjectOfType <StopWalk2>(); }