This is my base class
using UnityEngine;
public class Weapon : MonoBehaviour, IInteractable
{
public void Interact(Player player)
{
player.gameObject.AddComponent<Weapon>();
}
}
It's extended by different children such as Pistol and M16. How can I make it so that the Interact function of the base class adds the child script instead of the base script?