Ejemplo n.º 1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.transform.tag == "Panel" && Player.Active)
     {
         _inPanelBounds = null;
         collision.GetComponentInParent <FirewallScript>().Instruction.SetActive(false);
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.transform.tag == "Panel" && Player.Active)
     {
         if (!collision.GetComponentInParent <FirewallScript>().Pressed)
         {
             _inPanelBounds = collision.gameObject.GetComponentInParent <FirewallScript>();
             collision.GetComponentInParent <FirewallScript>().Instruction.SetActive(true);
         }
     }
 }