Ejemplo n.º 1
0
    private string formatAnswer(string text, string[] ans)
    {
        int count = 0;

        text = text.Replace("*", "{}");
        Debug.Log(text);
        for (int i = 0; i < text.Length; i++)
        {
            if (text[i] == '{')
            {
                text = text.Insert(i + 1, count.ToString("D1"));
                count++;
            }
        }
        text = string.Format(text, ans);
        return(text);
    }