_xiaofang/xiaofang/Assets/Script/PlayerTask.cs
2024-12-28 21:42:16 +08:00

40 lines
791 B
C#

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);
//if(TaskPanel.instance.enabled)
//{
// TaskPanel.instance.displaytask(id);
//}
//ZZZPlayer.CSZS.SetPlayerID(id.ToString());
}
}
void OnTriggerExit(Collider collider)
{
}
}