Oncollision Update Unity

 bool collided;
 
 void OnCollisionEnter(){
     collided =true;
 }
 
  void OnCollisionExit(){
     collided =false;
 }
  void Update(){
     if (collided){
           ...
     }
 }
Zarden