예제 #1
0
    public void Activate()
    {
        isActive = true;
        switch (type)
        {
        case -1:
        case -4:
            type = -7;
            MapInfo.current.prefMap [(int)coordinate.x, (int)coordinate.y] = -7;
            break;

        case -2:
        case -5:
            type = -8;
            MapInfo.current.prefMap [(int)coordinate.x, (int)coordinate.y] = -8;
            break;

        case -3:
        case -6:
            type = -9;
            MapInfo.current.prefMap [(int)coordinate.x, (int)coordinate.y] = -9;
            break;
        }

        grid.ActivateResource((int)coordinate.x, (int)coordinate.y, type);
    }