How to Use IEnumerator Correctly when button calls multiple functions
问题 I am making a card game in which I am trying to make a (0.5f) delay before each card is instantiated. I have my code which instantiates and object public IEnumerator Name(int x,int y, int z) { } In the IEnum i have a yeild return new WaitForSeconds(0.5f) before all the code with the instantiation. I call my IEnumerator in 2 different classes 2 times in each by using StartCoroutine(Name(...par...)); And on my play game button i have 4 events which use the enum to spawn the cards but there is