Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     // If sphere collider is triggering with player human and
     // VO can play, then start VO subtitles
     if (other.gameObject.layer == LayerMask.NameToLayer("Player"))
     {
         if (VOTriggerControl.canPlayVO)
         {
             Subtitles.start(VOLocalisation.createInstance(VOPath));
             VOTriggerControl.canPlayVO = false;
         }
     }
 }
Ejemplo n.º 2
0
 public void OnClick()
 {
     Subtitles.start(VOLocalisation.createInstance(VOPath));
 }