using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 展示点数据
///
public class SpotInfo : MonoBehaviour
{
///
/// 场景标题
///
public string sceneTitle;
///
/// 内容标题
///
public string title;
///
/// 内容详细
///
public string detailInfo;
///
/// 字体大小
///
public int fontSize = 45;
///
/// 模型旋转方向
///
public Vector3 rotateDir = Vector3.up;
///
/// 模型默认角度
///
public Vector3 rotateAngle;
///
/// 是否包含模型
///
public bool showModel;
///
/// 展示点图片
///
public Sprite spDetail;
///
/// 展示品动画(如果有的话)
///
public Animator anim;
///
/// 展示品Transform,如果直接放在Spot下可不设置
///
public Transform tranModel;
private void Start()
{
if(anim == null)
{
anim = GetComponent();
}
}
void OnMouseDown()
{
XMZJController.Instance.ShowInfo(this);
}
}