📜  unity c# set list to set active true - C# 代码示例

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

代码示例1
// Set the whole list of game objects to false:
public class Program : MonoBehaviour
{
    public GameObject[] deck;
    
    void Start()
    {
        foreach (var obj in deck)
        {
            obj.SetActive(true);
        }
    }
}