Mercurial > hg > Game > Games
comparison Orchestland/Assets/LeapMotion/Scripts/Utils/EnableUpdateOrdering.cs @ 1:f7675884f2a1
Add Orchestland project
author | Daiki OYAKAWA <e135764@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2015 23:09:20 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:347d21cdfc22 | 1:f7675884f2a1 |
---|---|
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 } |