ShanDongVirtualPowerPlant/u3d-ShanDongVirtualPowerPlant/Assets/Adam/Scripts/ThreeDController.cs

19 lines
362 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 3D物体滑入滑出
/// </summary>
public class ThreeDController : MonoBehaviour
{
private void OnMouseEnter()
{
Bootstrap.Instance.ShowLandMark(gameObject);
}
private void OnMouseExit()
{
Bootstrap.Instance.CloseLandMark();
}
}