博客
关于我
unity OnTriggerEnter碰撞器
阅读量:577 次
发布时间:2019-03-11

本文共 360 字,大约阅读时间需要 1 分钟。

 

 

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Tig : MonoBehaviour{    void Start()    {    }    void Update()    {    }    void OnTriggerEnter(Collider collider)    {        if (collider.gameObject.tag == "Player")        {            transform.FindChild("door").SendMessage("doorcheck");        }    }

 

转载地址:http://wmhvz.baihongyu.com/

你可能感兴趣的文章
reflow和repaint引发的性能问题
查看>>
Reflection反射机制原理、使用场景 及 缺陷
查看>>
php csv 导出
查看>>
php curl 实例+详解
查看>>
php curl_init函数用法(http://blog.sina.com.cn/s/blog_640738130100tsig.html)
查看>>
php curl_multi批量发送http请求
查看>>
php curl请求微信发红包接口出现错误:Peer's Certificate issuer is not recognized.
查看>>