Files
Loong/Assets/_Loong/Scripts/Door.cs
2025-10-25 18:32:49 +08:00

27 lines
574 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DragonLi.Core;
using UnityEngine;
public class Door : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
Debug.LogError("门碰撞:"+other.gameObject.name);
}
private void Start()
{
CoroutineTaskManager.Instance.WaitSecondTodo(() =>
{
if(transform==null)
return;
Debug.Log("开始");
GameManager.Ins.GameStart();
Destroy(gameObject);
}, 5f);
}
}