BloodAndGore/Assets/Scripts/GUI/GoreToggler.cs

21 lines
543 B
C#
Raw Normal View History

2019-08-04 14:36:42 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2019-08-14 16:17:48 +02:00
using Saltosion.OneWeapon.Utils;
2019-08-04 14:36:42 +02:00
2019-08-14 16:17:48 +02:00
namespace Saltosion.OneWeapon.GUI {
2019-08-04 14:36:42 +02:00
public class GoreToggler : MonoBehaviour {
public GameObject GoreObject;
public GameObject CensoredObject;
private void Update() {
GoreObject.SetActive(!Options.CensorGore);
CensoredObject.SetActive(Options.CensorGore);
}
public void ToggleGore() {
Options.CensorGore = !Options.CensorGore;
}
}
}