Search Unity

Need to stop player movement on hitting obstacle

Discussion in 'Animation' started by Infinity-Gamer, Jul 22, 2022.

  1. Infinity-Gamer

    Infinity-Gamer

    Joined:
    Sep 5, 2020
    Posts:
    1
    I am developing a endless runner game and need the specific help.
    When my player hits an obstacle it plays the death animation and then game over screen appears in 2sec.
    but in that time the player movement does not stop.
    I need to stop player movement at the time it hits an object.
    so please anyone help