Object reference not set to an instance of an object

前端 未结 4 1256
滥情空心
滥情空心 2021-01-18 19:45

I have a class Cell:

public class Cell
{
    public enum cellState
    {
        WATER,
        SCAN,
        SHIPUNIT,
        SHOT,
        HIT
    }

             


        
4条回答
  •  粉色の甜心
    2021-01-18 20:11

    You are getting the exception because you are not assigning an instance of Cell to any of the slots of your matrices.

提交回复
热议问题