Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.Rendering;
- public class VolumeController : MonoBehaviour
- {
- public static VolumeController instance;
- private Volume cc;
- private void Awake()
- {
- if (instance == null)
- instance = this;
- }
- void Start()
- {
- cc = GetComponent<Volume>();
- }
- public void DisableVolume()
- {
- cc.weight = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement