public override void Deactivate(GameObject actor)
 {
     hasBeenHit   = false;
     isInteracted = false;
     PlayAnimOff();
     EventInteracted.Invoke(actor);
     EventDeactivated.Invoke(actor);
 }
Example #2
0
 public override void Deactivate(GameObject actor)
 {
     isInteracted = false;
     if (GetComponent <SpriteRenderer>())
     {
         GetComponent <SpriteRenderer>().sprite = off;
     }
     EventDeactivated.Invoke(actor);
 }
Example #3
0
 public override void Deactivate(GameObject actor)
 {
     CloseDoor();
     EventDeactivated.Invoke(actor);
 }
Example #4
0
 public override void Deactivate(GameObject actor)
 {
     gameManager.uiManager.CanvasUI.encyclopedia.GetComponent <InventoryActor>().interactable = null;
     gameManager.uiManager.CanvasUI.EventDialogueClosed.RemoveListener(gameManager.uiManager.CanvasUI.ForceOpen);
     EventDeactivated.Invoke(actor);
 }