change this javascript to C# script?

function OnTriggerEnter(other : Collider)
{
if(other.tag == “Player”)
{
details = true;
}
}

       function OnTriggerExit(other: Collider)
       {
            if(other.tag == "Player")
            {
                details = false;
            }
        }

Here ya go! :smiley:

   private bool details;

   public void OnTriggerEnter(Collider other)
   {
        if(other.tag == "Player")
        {
            details = true;
        }
   }

   public void OnTriggerExit(Collider other)
   {
        if(other.tag == "Player")
        {
            details = false;
        }
    }