campfire/Assets/Scripts/MeshHider.cs

16 lines
289 B
C#
Raw Permalink Normal View History

2020-04-20 19:23:46 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshHider : MonoBehaviour {
public bool HideOnPlay;
public MeshRenderer Renderer;
void Start() {
if (HideOnPlay) {
Renderer.enabled = false;
}
}
}