,i have a ontriggerenter() in my script but i want to use in start function that if ( char collides with ontriggerenter() ) then statements underneath runs

,public class charrun : MonoBehaviour
{
public Animator it;
public float speed;
public float turn;
Vector3 pos;

// Start is called before the first frame update
void Start()
{
    // Invoke("OnTriggerEnter()", 3f);

}
// Update is called once per frame
void Update()
{

    run();
     Invoke("run", 20f);

}
public void run()
    {
    transform.Translate(0, 0, speed * Time.deltaTime);

    // speed = speed * Time.deltaTime ;

    if (Input.GetKey(KeyCode.LeftArrow))

        transform.Rotate(Vector3.up, -turn * Time.deltaTime);
     }
public void onc()
{
    it.Play("jump");
}
void OnTriggerEnter()
{

    it.Play("fa");
   
 //   pos = transform.position;
   //   pos.x += 2f;
  //  transform.position = pos;

}![159856-she.jpg|1354x654](upload://6rxMAhlZlTYgOIZ83FLCWQKmiAe.jpeg)

}

I dont know if you mean that, but if I got it right, you can use a bool to check the onTrigger. And use the bool in Start, inside the If condition.