유니티/유니티 C#

[유니티/C#] Reflection으로 enum 받아오기

진서박 2023. 7. 22. 23:42
반응형
    enum Buttons
    {
        PointButton
    }

    enum Texts
    {
        PointText,
        ScoreText
    }

    private void Start()
    {
        Bind(typeof(Buttons));
        Bind(typeof(Texts));
    }

    void Bind(System.Type type)
    {

    }
반응형