alright, so here’s some code:
void OnTriggerEnter2D (Collider2D col)
{
switch (col.gameObject.name)
{
case "enable":
GameCon4.disabledddd = false;
break;
case "disableeee":
GameCon4.disabledddd = true;
Enabler4.IsUsableeee = true;
break;
if the player enters the “disableeee” gameObject, the object does something. but it does’nt need to be the player, anything that just is inside the collider can enter the trigger. how do i modify the code so that only the player can be the trigger?