// This removes the current trap that's in the currTrap variable. public void RemoveTrap() { // We tell the TrapCard associated here that it is no longer associated with anything. associatedTrapCard.GetComponent <TrapCard>().equipped = false; print("Removed " + player.currEquippedTraps[representWhichSpot].name + " from slot " + representWhichSpot); // And then we null out the refrences. associatedTrapCard = null; player.currEquippedTraps[representWhichSpot] = null; }