stageCollider.cs 454 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class stageCollider : MonoBehaviour {
  5. // Use this for initialization
  6. void Start () {
  7. }
  8. // Update is called once per frame
  9. void Update () {
  10. }
  11. private void OnTriggerEnter(Collider other)
  12. {
  13. if (other.tag == "Player")
  14. {
  15. StageController.instance.mapUpdate();
  16. Debug.Log("进入");
  17. }
  18. }
  19. }