I have 2 IEnumerator function to run,which is A() and B().
and B() should be run when A() is finished.A function primarily delete one list item in database.B function read the remain list item in the database.
if( Button…)
{
StartCoroutine A();
StartCoroutine B();
}
while the problem is when I click the button,the list item in the database is indeed deleted,yet B function seem not work(or maybe seem to be slow),Only when I click the button again,the B()function seem to work.
I’m wondering whether unity support multithread?
how could I realized the result that when click the button ,firstly the list item record in database is deleted,and then the remain list item record is read in succession?
any help will be appreciated!
this way seem to be not