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(); }
protected override void Start() { base.Start(); heightmapPainter = FindObjectOfType <ComputeHeightmapPainter>(); squaredSegmentSize = segmentSize * segmentSize; }