BloodAndGore/Assets/Scripts/Menus/GoreToggler.cs

20 lines
512 B
C#
Raw Normal View History

2019-08-04 14:36:42 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Saltosion.OneWeapon.Menus {
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;
}
}
}