_xiaofang/xiaofang/Assets/Script/PlayerTask.cs

40 lines
791 B
C#
Raw Normal View History

2024-12-26 17:37:30 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerTask : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter(Collider collider)
{
if (collider.tag == "Task")
{
int id = collider.GetComponent<AreaID>().Id;
Debug.Log(1111111111111111111);
Debug.Log(id);
2024-12-28 21:42:16 +08:00
//if(TaskPanel.instance.enabled)
//{
// TaskPanel.instance.displaytask(id);
//}
//ZZZPlayer.CSZS.SetPlayerID(id.ToString());
2024-12-26 17:37:30 +08:00
}
}
void OnTriggerExit(Collider collider)
{
}
}