21 lines
371 B
C#
21 lines
371 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ObjectVisit : MonoBehaviour
|
|
{
|
|
public bool isVisit = false;
|
|
// Start is called before the first frame update
|
|
|
|
|
|
private void OnWillRenderObject()
|
|
{
|
|
isVisit = true;
|
|
Debug.Log("可见");
|
|
}
|
|
|
|
// Update is called once per frame
|
|
|
|
}
|