コンストラクタで呼べない、
FindObjectsOfType is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead.
デストラクでやると?
FindObjectsOfType can only be called from the main thread.
コンストラクタで呼べない、
FindObjectsOfType is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead.
デストラクでやると?
FindObjectsOfType can only be called from the main thread.