📜  如何检测游戏对象何时退出触发器c#代码示例

📅  最后修改于: 2022-03-11 14:48:53.252000             🧑  作者: Mango

代码示例1
//for 2D 
//remeber to set your collider to trigger 
//and to give the gameobject a rigidbody and collider of its own
private void OnTriggerExit2D(Collider2D collision)
    {
        
    }