abouhanafy87 5 Posted April 25, 2022 i want to make a function in a new thread to check the ore and print rock1 is here ( for example ) when the player sleep until game object == null work together but if i use sleep i can't see any thing ? i'm sorry for my language .
Axolotl 31 Posted April 25, 2022 You dont really need to do this, you can just save the ore youre currently mining into a GameObject and only allow it to mine when that GameObject is null. No need to use sleepUntil. However, for future purposes you can use a TimerTask to execute a new thread. Having a different thread can definitely be useful
Recommended Posts
Archived
This topic is now archived and is closed to further replies.