private IEnumerator <WaitForSeconds> ProcessTurn() { yield return(new WaitForSeconds(1f)); string turnInstruction = turnQueue[0]; turnQueue.RemoveAt(0); string[] aData = turnInstruction.Split('|'); // Process Unit Act if (aData[1] == "CACT") { foreach (UnitClass unit in gameBoard.unitList) { if (unit.entityID == aData[2]) { unit.QueueAction(turnInstruction); } } } // Process Item Add if (aData[1] == "IADD") { gameBoard.AddItem(null, new Vector3(999, 999, 999), turnInstruction); } }