[Serializable]
public struct TempDemoPrefab
{
public string name;
public GameObject[] gos;
public Transform[] pos;
}
public TempDemoPrefab[] temps;
就可以在面板上直接添加对应的物体了。
[Serializable]
public struct TempDemoPrefab
{
public string name;
public GameObject[] gos;
public Transform[] pos;
}
public TempDemoPrefab[] temps;
就可以在面板上直接添加对应的物体了。