Search Unity

Question Buttons

Discussion in '2D' started by SEVEN-ARTS, Jan 25, 2021.

  1. SEVEN-ARTS

    SEVEN-ARTS

    Joined:
    Aug 31, 2020
    Posts:
    40
    Hello,
    I've been looking for a script or tutorial for a few hours in which the following happens:
    The player presses a button and then the time (Time.timeScale =?)
    Is set from -0.0 to 1.
    And my problem now is that I have no idea
    how to use the input from a pressed button.
    Can somebody help me? :)
     
  2. Derekloffin

    Derekloffin

    Joined:
    Mar 14, 2018
    Posts:
    322
    Wrong forum for such a question. You're looking for the UI forum, but honestly for a question like that you probably should just look up a unity UI tutorial on youtube. For instance:

    They are numerous others too.