16 lines
289 B
C#
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;
|
|
}
|
|
}
|
|
}
|