コード例 #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
コード例 #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;
    }
コード例 #3
0
 private void Awake()
 {
     instance = this;
 }