| 1234567891011121314151617 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Spirits_Float : MonoBehaviour
- {
- private bool once = true; //½öÒ»´Î³ö³¡Ð§¹û
- private void OnTriggerEnter(Collider other)
- {
- if (other.gameObject.layer == 8)
- {
- GameObject ga = other.transform.parent.parent.parent.gameObject;
- ga.GetComponent<Enemy>().FloatStateOn();
- }
- }
- }
|