using UnityEngine; using System.Collections; using System.Collections.Generic; /// /// Execution ordering is determined by enable ordering. /// Provided that scripts can begin disabled, this will /// activate scripts in the desired order. /// public class EnableUpdateOrdering : MonoBehaviour { public List ordering; // Use this for initialization void Start () { foreach (MonoBehaviour script in ordering) { if (script == null) continue; script.enabled = true; } } }