// Start is called before the first frame update void Start() { _brushColor = new Dictionary <ETypeBrush, Color>(); _brushColor[ETypeBrush.passable] = Color.white; _brushColor[ETypeBrush.impassable] = Color.gray; _brushColor[ETypeBrush.start] = Color.green; _brushColor[ETypeBrush.finish] = Color.red; CurrentBrush = ETypeBrush.impassable; }
public void ChangeBrush(int newBrush) { CurrentBrush = (ETypeBrush)newBrush; }
public void ChangeBrush(ETypeBrush newBrush) { CurrentBrush = newBrush; }