2026-05-21 버그 수정
This commit is contained in:
23
Assets/02_Scripts/Enemy/Skills/SkillSupport.cs
Normal file
23
Assets/02_Scripts/Enemy/Skills/SkillSupport.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class SkillSupport : MonoBehaviour
|
||||
{
|
||||
[HideInInspector] public Transform[] DownHazardFirePos; // 위에서 아래로 포격
|
||||
[HideInInspector] public Transform[] RightHazardFirePos; // 왼쪽에서 오른쪽으로 포격
|
||||
|
||||
void Start()
|
||||
{
|
||||
GameObject[] shineDownStartPoss = GameObject.FindGameObjectsWithTag("ShineDownStartPos");
|
||||
GameObject[] shineRightStartPoss = GameObject.FindGameObjectsWithTag("ShineRightStartPos");
|
||||
|
||||
DownHazardFirePos = new Transform[shineDownStartPoss.Length];
|
||||
RightHazardFirePos = new Transform[shineRightStartPoss.Length];
|
||||
|
||||
for(int i=0;i<DownHazardFirePos.Length;i++)
|
||||
DownHazardFirePos[i] = shineDownStartPoss[i].transform;
|
||||
|
||||
for(int i=0;i<RightHazardFirePos.Length;i++)
|
||||
RightHazardFirePos[i] = shineRightStartPoss[i].transform;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user