|
@@ -0,0 +1,23 @@
|
|
|
|
|
+using System.Collections;
|
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
|
+using UnityEngine;
|
|
|
|
|
+
|
|
|
|
|
+public class Spirits_Float : MonoBehaviour
|
|
|
|
|
+{
|
|
|
|
|
+ private int s;
|
|
|
|
|
+ List<GameObject> needToFloat = new List<GameObject>();
|
|
|
|
|
+
|
|
|
|
|
+ private void OnTriggerEnter(Collider other)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (other.gameObject.layer == 8)
|
|
|
|
|
+ {
|
|
|
|
|
+ print(s++);
|
|
|
|
|
+ needToFloat.Add(other.transform.parent.parent.parent.gameObject);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void LetEnemyFloat()
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|