13 lines
222 B
C#
13 lines
222 B
C#
using UnityEngine;
|
|
|
|
public class HideObject : MonoBehaviour
|
|
{
|
|
void Start()
|
|
{
|
|
Renderer rend = GetComponent<Renderer>();
|
|
if (rend != null)
|
|
{
|
|
rend.enabled = false;
|
|
}
|
|
}
|
|
} |