public static void Register(LeanWindow window) { if (Instances.Count > 0 && window != null) { Instances[0].RegisterNow(window); } }
private void RegisterNow(LeanWindow window) { WindowOrder.Remove(window); // NOTE: Property windowOrder.Add(window); }
void Awake() { window = GetComponent <Lean.Gui.LeanWindow>(); InitializeOnAwake(); }