abouhanafy87 4 Share 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 . Link to comment Share on other sites More sharing options...
Axolotl 31 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now