Modify Struct variable in a Dictionary

前端 未结 4 731
孤独总比滥情好
孤独总比滥情好 2020-11-27 19:51

I have a struct like this:

public struct MapTile
{
    public int bgAnimation;
    public int bgFrame;
}

But when I loop over it with forea

4条回答
  •  佛祖请我去吃肉
    2020-11-27 20:38

    Chance struct to Class

    before:

    public struct MapTile
    {
        public int bgAnimation;
        public int bgFrame;
    }
    

    after:

    public Class MapTile
    {
        public int bgAnimation;
        public int bgFrame;
    }
    

提交回复
热议问题