[SerializeField] private List<EnemyType> enemyType;
public struct EnemyType
{
public Sprite sprite;
public Vector2 offset;
public Vector2 size;
}
์ด๋ ๊ฒ ํด์ ๋ชน์ ๋ค์ ๋ถํํ ๋๋ง๋ค ๋งค๋ฒ ๋ค๋ฅธ ๋ชจ์์ผ๋ก ๋์ค๋๋ก ํ ๋ผ๊ณ ํด. ๊ทผ๋ฐ ์ด๊ฑฐ ์ปดํ์ผํ๋ฉด ์ค๋ฅ๋ ์๋จ๋๋ฐ ์ ๋ํฐ ์ธ์คํํฐ์ ์๋์ด. ์ด๊ฑฐ ์ด๋ป๊ฒ ํด์ผ๋?
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=pxkey&logNo=221307184650
์์ฝ struct ์์นธ์ system.serializable ์ฐ์
์๋์ ๊ฐ์..!
์ธ์คํํฐ์ ๋์ฐ๋ ค๋ฉด monobehaviour ๋ฃ์ด์ผ๋์ง์๋? - dc App
์ ๊ฑธ ์ด ๋งค์ธ ํด๋์ค์ ๋น๊ทผ ์ป์ง