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