public void clickedOnPoint(Vector2 point) { float hardCodedWeight = 0.3f; texture.SetPixels((int)(point.x * hardCodedTextureSize), (int)(point.y * hardCodedTextureSize), brushThickness, brushThickness, MakeColorArray()); ProcedualTerrain.ModifyHeight(point, hardCodedWeight, brushThickness, brushType); texture.Apply(); }
void Awake() { t = this; }