38 lines
699 B
C#
38 lines
699 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class YaliGongNeng : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 功能页面
|
|
/// </summary>
|
|
private void OnDisable()
|
|
{
|
|
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
//锅炉开始爆炸
|
|
GuoLuBaoZhang.Instance.StartPlayAnim();
|
|
GuoLuBaoZhang.Instance.IsCanMove = true;
|
|
}
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
public void EndPage()
|
|
{
|
|
//动画结束
|
|
GuoLuBaoZhang.Instance.EndPlayAnim();
|
|
GuoLuBaoZhang.Instance.IsCanMove = false;
|
|
|
|
//位置旋转还原
|
|
GuoLuBaoZhang.Instance.ResetToInitialState();
|
|
}
|
|
}
|