20 lines
512 B
C#
20 lines
512 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|