unity while in trigger

C#
 void OnTriggerStay(Collider other)
 {
   Debug.Log("This will be called every frame");
   if (Input.GetKeyDown("space") && other.tag == "TalkCylinder")          
   {
     Debug.Log("Talking");          
   }      
 }
Source

Also in C#: