Mercurial > hg > Game > Games
comparison Orchestland/Assets/LeapMotion/Scripts/Utils/EnableUpdateOrdering.cs @ 3:0030a1b971fb default tip
merge
author | Yuta ANSE <e135745@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2015 23:23:43 +0900 |
parents | f7675884f2a1 |
children |
comparison
equal
deleted
inserted
replaced
2:fdab88fc2cb9 | 3:0030a1b971fb |
---|---|
1 using UnityEngine; | |
2 using System.Collections; | |
3 using System.Collections.Generic; | |
4 | |
5 /// <summary> | |
6 /// Execution ordering is determined by enable ordering. | |
7 /// Provided that scripts can begin disabled, this will | |
8 /// activate scripts in the desired order. | |
9 /// </summary> | |
10 public class EnableUpdateOrdering : MonoBehaviour { | |
11 public List<MonoBehaviour> ordering; | |
12 | |
13 // Use this for initialization | |
14 void Start () { | |
15 foreach (MonoBehaviour script in ordering) { | |
16 if (script == null) | |
17 continue; | |
18 script.enabled = true; | |
19 } | |
20 } | |
21 } |