/** * Invokes this trigger */ public override void Invoke(Actor actor) { Collider col = actor.GetComponent<Collider>(); if(actor != null && col != null && actor.triggerCanChangeCollider) { col.enabled = this.isEnabled; col.isTrigger = this.isTrigger; actor.OnColliderChange(); } }