private void Awake() { if (Instance == null) { Instance = this; } }
void Start() { cam = GetComponent <Camera>(); if (selectionManager == null) { selectionManager = GetComponent <PlayerSelectionManager>(); } minYRotDg = transform.rotation.y - YRotationDgAllowance; maxYRotDg = transform.rotation.y + YRotationDgAllowance; if (minYRotDg > maxYRotDg) { var temp = minYRotDg; minYRotDg = maxYRotDg; maxYRotDg = temp; } GetComponent <UnityEngine.Rendering.PostProcessing.PostProcessVolume>().isGlobal = true; }
private void Awake() { instance = this; }