public class BlaBlaBla : MonoBehaviour {
void LaLa(Collider other)
{
somecode
StartCoroutine(BleBle());
destroy object.other //execute this code after the wait
}
IEnumerator BleBle ()
{
yield return new WaitForSeconds(xf);
}
}
In other words what I want to do is call that specific line on that method and keep going from there.
There is no way that I know that I can put that line of “somecode” after the yield return new line as it uses an inside argument, the “other”. Nor can I put the IEnumerator inside the void… I have tried that.