public void SetState(RGGrid.CellType state, float weight = 0) { _state = state; if (RGGrid.IsCellPassable(state)) { _BgSprite.color = _normalColor; } else { _BgSprite.color = _impassableColor; } }
public SnakeAI(RGGrid i_Grid) { grid = i_Grid; }