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.

23 lines
611 B

2 years ago
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pingban : MonoBehaviour
{
public GameObject pb;
public GameObject jt;
private void OnTriggerStay(Collider other)
{
if (other.gameObject.tag=="Player") {
print("进入范围");
if (Input.GetKeyDown(KeyCode.F)) {
print("按下F");
GameManager.GetInstance().IsHasIpad = true;
pb.SetActive(false);
jt.SetActive(false);
TaskCenter.GetInstance().FinishTask(0);
}
}
}
}