VR-1024
using UnityEngine;
using System.Collections;

public class PlayerTrigger : MonoBehaviour {

    void OnTriggerEnter(Collider other)
    {
        Debug.Log ("Enter");
    }

    void OnTriggerStay(Collider other)
    {
        Debug.Log("Stay");
    }

    void OnTriggerExit(Collider other)
    {
        Debug.Log ("Exit");
    }
}

分类:

技术点:

相关文章:

  • 2021-10-16
  • 2021-10-19
  • 2021-10-19
  • 2021-08-14
  • 2021-10-19
  • 2021-08-14
  • 2021-08-14
  • 2021-08-14
猜你喜欢
  • 2021-08-14
  • 2021-08-14
  • 2021-08-14
  • 2021-08-14
  • 2021-08-14
  • 2021-10-19
  • 2021-08-14
相关资源
相似解决方案