using UnityEngine; [CreateAssetMenu(menuName = "Gather And Defend/" + nameof(MonsterCoreDrop))] public class MonsterCoreDrop : ScriptableObject { [SerializeField] private GameObject _monsterCorePrefab; public void Start() { Debug.Log("MONSTER CORING SSO HARD"); if (_monsterCorePrefab == null) { Debug.LogWarning("Prefab MonsterCore non defini"); } } public void Death(Vector3 position) { if (_monsterCorePrefab != null) { Instantiate(_monsterCorePrefab, position, Quaternion.identity); } Debug.Log("MONSTER CORE DROPPEDD"); } }