public int Idle(callReturn finished) { float prob = Random.Range(0f, 1f); if (prob > 0.5) { status = 0; child.run(returnToMe); return(0); } else { status = 1; finished(1); return(1); } }
public int Idle(callReturn finished) { float prob = Random.Range(0f, 1f); if (prob > 0.5) { status = 0; child.run(returnToMe); return(0); } else { status = 1; finished(1); return(1); } }