1 using UnityEngine;
2 using
System.Collections;
3
4 public
class TurnColliderOn : MonoBehaviour {
5
6     
public float afterSeconds;
7
8     
// Use this for initialization
9     
void Start () {
10         Invoke (
"Trigger", afterSeconds);
11     }
12
13     
void Trigger()
14     {
15         transform.GetComponent<BoxCollider> ().enabled =
true;
16     }
17
18 }