private void updatePushTimer()
 {
     pushThePlayerTimer -= Time.deltaTime;
     if (pushThePlayerTimer < 0f)
     {
         KeyImputManager.freePlayerMouvement();
         pushThePlayer      = false;
         pushThePlayerTimer = 1f;
     }
 }
 void Awake()
 {
     KeyImputManager.freePlayerMouvement();
     sprite                 = GetComponent <SpriteRenderer>();
     animator               = GetComponent <Animator>();
     rigidbody              = GetComponent <Rigidbody2D>();
     timeForNextDash        = PlayerDashDelay;
     timeForNextInvisiblity = PlayerInvisibleDelay;
     resetImmunity();
     SetBackground();
 }
 public void closedShop()
 {
     KeyImputManager.freePlayerMouvement();
     shopIsOpen   = false;
     shop.enabled = false;
 }
 public void unlockPlayerMovement()
 {
     KeyImputManager.freePlayerMouvement();
     rigidbody.velocity = Vector3.zero;
 }