You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MoveCamera : MonoBehaviour
|
|
{
|
|
public GameObject mainCamera;
|
|
private Animator anim;
|
|
private void Start()
|
|
{
|
|
anim = mainCamera.GetComponent<Animator>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 1/5的放大镜
|
|
/// </summary>
|
|
public void OneMove()
|
|
{
|
|
if (mainCamera.transform.position.y != 1.53f)
|
|
{
|
|
anim.SetTrigger("OneMove");
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 4/5的末端试水场景
|
|
/// </summary>
|
|
public void FourMove()
|
|
{
|
|
if (mainCamera.transform.position.y!=5.72f)
|
|
{
|
|
anim.SetTrigger("FourMove");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 4/5的放大镜
|
|
/// </summary>
|
|
public void FourMoveSX()
|
|
{
|
|
if (mainCamera.transform.position.y != 3.76f)
|
|
{
|
|
anim.SetTrigger("FourMoveSX");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 1/5的返回初始界面
|
|
/// </summary>
|
|
public void OneMoveSX()
|
|
{
|
|
if (mainCamera.transform.position.y != 2.36f)
|
|
{
|
|
anim.SetTrigger("OneMoveSX");
|
|
}
|
|
|
|
}
|
|
}
|