intro new Gog Zpne fix
This commit is contained in:
31
Assets/Scripts/FogDefaultSettings.cs
Normal file
31
Assets/Scripts/FogDefaultSettings.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// JEDYNE <20>RÓD£O PRAWDY o domyœlnej mgle.
|
||||
/// UmieϾ ten skrypt na JEDNYM obiekcie w scenie, np. "_FogManager".
|
||||
/// </summary>
|
||||
public class FogDefaultSettings : MonoBehaviour
|
||||
{
|
||||
public static FogDefaultSettings Instance { get; private set; }
|
||||
|
||||
[Header("Globalne Domyœlne Ustawienia Mg³y URP")]
|
||||
public bool fogEnabled = true;
|
||||
public Color fogColor = new Color(0.7f, 0.7f, 0.7f);
|
||||
public FogMode fogMode = FogMode.Exponential;
|
||||
[Range(0f, 1f)]
|
||||
public float fogDensity = 0.01f;
|
||||
public float fogStartDistance = 50f;
|
||||
public float fogEndDistance = 1000f;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user