PlayerThroughGroundCheck.cs 510 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using UnityEngine;
  3. public class PlayerThroughGroundCheck : MonoBehaviour
  4. {
  5. private void Start()
  6. {
  7. }
  8. private void Update()
  9. {
  10. }
  11. private void FixedUpdate()
  12. {
  13. if (!this.isOpen)
  14. {
  15. return;
  16. }
  17. GameObject gameObject = R.Player.GameObject;
  18. if (gameObject && gameObject.transform.position.y < base.transform.position.y)
  19. {
  20. Log.Warning("目前玩家掉落到比我低的位置了");
  21. UnityEngine.Debug.Break();
  22. }
  23. }
  24. public bool isOpen = true;
  25. }