Ejemplo n.º 1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.GetComponent <NiggaScript>() != null)
     {
         isInsideInteractive = false;
         script.Deselect();
         script = null;
     }
 }
Ejemplo n.º 2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     script = collision.GetComponent <NiggaScript>();
     if (script != null)
     {
         isInsideInteractive = true;
         script.Select();
     }
 }