36 lines
651 B
C#
36 lines
651 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);
|
|
TaskPanel.instance.displaytask(id);
|
|
}
|
|
}
|
|
|
|
void OnTriggerExit(Collider collider)
|
|
{
|
|
|
|
}
|
|
}
|