a04424ad2c06782ab47e5a67ee91766dc289f1ecdaacc6c8bf10dac65dd1d32141b1643a6375634873e2aad10ef1

class ์•ˆ์— ์ƒ์œ„class.ํ•˜์œ„class[] (๋ณ€์ˆ˜) ์ƒ์„ฑํ•ด์„œ ํ•˜๋ฉด ๋˜๋Š” ๋ฌธ์ œ ์˜€์Œ ใ…‡ใ…‡

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class spawnmanager : MonoBehaviour
{
[System.Serializable]
public class Enemy
{
public string Enemy_name;
public class enemies
{
public GameObject prefab;
public Transform spawnspot;
public int count;
public float delay;
}
}
public Enemy[] enemy;
}

๋‚ด ์ฝ”๋“œ์ธ๋ฐ
๊ฒฐ๊ณผ๊ฐ€ string ์ž…๋ ฅ ์นธ๋งŒ ๋‚˜์˜ค๋”๋ผ๊ณ  ๋‚ด ์˜๋„๋Š” ๋‚ด๋ถ€ class๋„ ์„ ์–ธํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๊ณ  ์‹ถ์Œ
์–ด๋–ป๊ฒŒ ํ•ด์•ผ๋ ๊นŒ?