private void PollInput() { Vector2Int inputPosition = GetMouseInput(); if (Input.GetKey(KeyCode.Mouse0)) { if (textureHandler.GetPixel(inputPosition.x, inputPosition.y) == Color.clear) { textureHandler.CreatePixel(inputPosition.x, inputPosition.y, Materials.Sand); } } else if (Input.GetKey(KeyCode.Mouse1)) { if (textureHandler.GetPixel(inputPosition.x, inputPosition.y) == Color.clear) { textureHandler.CreatePixel(inputPosition.x, inputPosition.y, Materials.Water); } } }