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.

32 lines
695 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PanDing124 : MonoBehaviour
{
public GameObject[] gb;
public PanDuan pd;
public GameObject[] tianchuang;
public Animator camAnimator;
private void Start()
{
camAnimator.SetTrigger("go4");
}
public void panding()
{
if(gb[0].activeSelf&&!gb[1].activeSelf&&!gb[2].activeSelf)
{
pd.SetOne(true);
}
}
public void shangxiajiantou()
{
if (!gb[1].activeSelf&&!gb[2].activeSelf)
{
tianchuang[0].SetActive(false);
tianchuang[1].SetActive(true);
}
}
}