📜  将 arraylist 值打印到控制台 unity - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.549000             🧑  作者: Mango

代码示例1
// C# In Unity

string[] aHuman = { "Leyla", "Pedro", "Carlos", "Ana" };

function Start ()
 {   //create a new variable Human so you can get the values
     foreach (string human in aHuman) 
          {
              Debug.Log(human);
          }
 }

// Press Play and open the Console