작성
·
233
0
내용은 아래 입니다.
You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all UnityEngine.MonoBehaviour:.ctor () SoundManager:.ctor () (at Assets/Scripts/Managers/SoundManager.cs:9) Managers:.ctor () (at Assets/Scripts/Managers/Managers.cs:14) UnityEngine.GameObject:AddComponent<Managers> () Managers:Init () (at Assets/Scripts/Managers/Managers.cs:43) Managers:get_Instance () (at Assets/Scripts/Managers/Managers.cs:9) Managers:get_Resource () (at Assets/Scripts/Managers/Managers.cs:18) BaseScene:Init () (at Assets/Scripts/Scenes/BaseScene.cs:19) GameScene:Init () (at Assets/Scripts/Scenes/GameScene.cs:11) BaseScene:Awake () (at Assets/Scripts/Scenes/BaseScene.cs:12)