2026-05-22 보스스킬 : 지진

This commit is contained in:
2026-05-22 16:17:35 +09:00
parent 20db4207fa
commit d95eb9df1d
18 changed files with 186 additions and 50 deletions

View File

@@ -0,0 +1,29 @@
using UnityEngine;
public class GameManager : MonoBehaviour,ISceneInitializable
{
public static GameManager Instance;
public SkillSupport SkillSupporter {get; private set;}
public PlayerController LocalPlayer {get; private set;}
private void Awake()
{
if (Instance == null)
{
Instance = this; //만들어진 자신을 인스턴스로 설정
}
else
{
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
}
}
public void OnSceneLoaded()
{
Debug.Log("aaaa");
SkillSupporter = Object.FindFirstObjectByType<SkillSupport>();
LocalPlayer = Object.FindFirstObjectByType<PlayerController>();
}
}