Ejemplo n.º 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Ejemplo n.º 2
0
    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;
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     instance = this;
 }