Advertisement
kadyr

Untitled

Aug 7th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class NPS : MonoBehaviour
  6. {
  7. [SerializeField] private List<string> phraseList;
  8. private void OnTriggerEnter(Collider other)
  9. {
  10. Debug.Log(phraseList[Random.Range(0, phraseList.Count - 1)]);
  11. }
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement