public void enableBox(TextAsset textFile, InteractionCollider curr) // enable the box with a new text file { interactionCollider = curr; lines = null; if (textFile != null) { lines = textFile.text.Split('\n'); } endLine = lines.Length - 1; currLine = 0; isActive = true; player.pause(); textBox.SetActive(true); StartCoroutine(textScroll(lines[currLine])); }
private void Start() { IC = GetComponent <InteractionCollider>(); originalVerb = verb; }
public NpcInteractionSystem(PlayerComponent player) : base(Matcher.empty()) { _player = player; _interactionCollider = _player.getComponent <InteractionCollider>(); _autorunNpcs = new List <NpcBase>(); }