輸出不了所有的卡牌
運(yùn)行后,顯示下面的錯(cuò)誤:
NullReferenceException: Object reference not set to an instance of an object
GameMain.LoadLevelCard(Int32 width, Int32 height)(at Assets/Script/GameMain.cs: 72)
第72行:int maxCount = Mathf.Max(contentRoot.childCount, needShowCardList.Count);
無(wú)法出現(xiàn)Resources里的圖片。之前在第4步顯示卡牌到UI上?,都測(cè)試可以成功。這是為什么呢?
2018-06-28
請(qǐng)問(wèn)成功了嗎,我也是敗在了這個(gè)錯(cuò)誤上……
2018-06-05
可能網(wǎng)絡(luò)故障