,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()

     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()
void OnTriggerEnter()

 //   pos = transform.position;
   //   pos.x += 2f;
  //  transform.position = pos;



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.