ZhangZhouSpecialEquipment/Assets/Scripts/扶梯/FuTiGongNeng.cs

42 lines
767 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FuTiGongNeng : MonoBehaviour
{
/// <summary>
/// 功能页面
/// </summary>
private void OnDisable()
{
}
private void OnEnable()
{
FuTiBaoZhang.Instance.StartPlayAnim();
FuTiManager.Instance.ToCameraMoveToBestPos();
}
// Start is called before the first frame update
void Start()
{
}
public void EndPage()
{
//动画结束
FuTiBaoZhang.Instance.EndPlayAnim();
FuTiManager.Instance.IsCanMove = false;
//摄像机还原,回到首页
FuTiManager.Instance.ToReturnCameraPos();
//位置旋转还原
FuTiBaoZhang.Instance.ResetToInitialState();
}
}