20 lines
411 B
C#
20 lines
411 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 3D物体滑入滑出
|
|
/// </summary>
|
|
public class ThreeDController : MonoBehaviour
|
|
{
|
|
private void OnMouseEnter()
|
|
{
|
|
Bootstrap.Instance.ShowLandMark();
|
|
}
|
|
private void OnMouseExit()
|
|
{
|
|
if (!GetComponent<MeshCollider>().enabled) return;
|
|
Bootstrap.Instance.CloseLandMark();
|
|
}
|
|
}
|