DropLogic.cs (284B)
1 using UnityEngine; 2 3 namespace Slimecing.Swords.DropBehaviour 4 { 5 public abstract class DropLogic : MonoBehaviour 6 { 7 [SerializeField] private LayerMask dropLayer; 8 9 public virtual void Drop() 10 { 11 gameObject.layer = dropLayer; 12 } 13 } 14 }