- Home /
Question by
Filippo12345 · Jun 16, 2020 at 04:50 PM ·
2d gameraycasthit2d
Hey...I wanted to make a 2d mining game. And my question is: *How can i check if the player keeps constantly holding the left mouse button on a block for like 2 seconds to mine it(via Raycast)?*...Thank u <3
How can i check if the player keeps constantly holding the left mouse button on a block for like 2 seconds to mine it(via Raycast)?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613001110im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to stop raycast when hitting an object in Unity? 0 Answers
Enemy Line of Sight Help Needed 2 Answers