Exemple #1
0
    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();
    }
Exemple #2
0
 void Awake()
 {
     t = this;
 }