27 lines
574 B
C#
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);
|
|
}
|
|
}
|