Beispiel #1
0
 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]));
 }
Beispiel #2
0
 private void Start()
 {
     IC           = GetComponent <InteractionCollider>();
     originalVerb = verb;
 }
Beispiel #3
0
 public NpcInteractionSystem(PlayerComponent player) : base(Matcher.empty())
 {
     _player = player;
     _interactionCollider = _player.getComponent <InteractionCollider>();
     _autorunNpcs         = new List <NpcBase>();
 }