Esempio n. 1
0
    protected override void Start()
    {
        pipeSimulation    = FindObjectOfType <ComputeMeshPaintWaterPipe>();
        terrainSimulation = FindObjectOfType <ComputeHeightmapPainter>();

        if (pipeSimulation == null)
        {
            Debug.LogError("No water simulation in scene!");
        }
        if (terrainSimulation == null)
        {
            Debug.LogError("No terrain simulation in scene!");
        }

        base.Start();
    }
Esempio n. 2
0
 protected override void Start()
 {
     base.Start();
     heightmapPainter   = FindObjectOfType <ComputeHeightmapPainter>();
     squaredSegmentSize = segmentSize * segmentSize;
 }