(Unity)Is Triggerにスクリプトで動的にチェックを入れる

(スクリプト)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ColliderAutoCheck : MonoBehaviour
{
    private BoxCollider box;

    void Start()
    {
        box = GetComponent<BoxCollider>();
        box.isTrigger = true;
    }
}