Answers for "unity wait until bool is true"

0

unity wait until bool is true

public class MyClassA
{
    private MyClassB _myClassB = new MyClassB();
    private bool IsReadyToContinue()
    {
 
        // i need to wait "isReady" here
        // then return true
 
 
        return false;
    }
 
}
 
public class MyClassB
{
    public bool isReady;
 
 
    private void DoSomething()
    {
        // load resources and change the bool to true
 
        isReady = true;
    }
}
Posted by: Guest on March-22-2021

Browse Popular Code Answers by Language