protected override void Start() { base.Start(); Instance = this; if (enabled == false) { return; } _minGridSize = 0.5f * _lodComponent.Settings._minObjectWidth / OceanRenderer.Instance._minTexelsPerWave; _maxGridSize = 0.5f * _lodComponent.Settings._maxObjectWidth / OceanRenderer.Instance._minTexelsPerWave; _maxGridSize = Mathf.Max(_maxGridSize, 2f * _minGridSize); }
private static void OnReLoadScripts() { Instance = FindObjectOfType <GPUReadbackFlow>(); }
private void OnDestroy() { Instance = null; }