I want (this) IEnumerator to be called with a string parameter, and then I want (this) IEnumerator to start a separate coroutine called the string name.
Enemy:
StartCoroutine(Load.Battle, Snake); //(or whatever)
Load:
public static IEnumerator Battle(string EnemyName)
{
StartCoroutine(EnemyName()); //tried 1000 things. This is the only line that I need help with.
int count = Enemy.count;
TBCState.Enemy1 = Enemy.name;
TBCState.Enemy2 = "-";
TBCState.Enemy3= "-";
if (count > 1)
{
TBCState.Enemy2 = Enemy.name;
}
if (count > 2)
{
TBCState.Enemy3 = Enemy.name;
}
yield return null;
}