campfire/Assets/Scripts/MeshHider.cs
2020-04-20 20:23:46 +03:00

16 lines
289 B
C#

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;
}
}
}