1 using System.Collections;
2 using System.Collections.Generic;
15 public List<IAirplaneUI> instruments =
new List<IAirplaneUI>();
16 private bool currentVisibility =
true;
19 #region Builtin Methods
23 instruments = transform.GetComponentsInChildren<
IAirplaneUI>().ToList<IAirplaneUI>();
30 bool showUIElements = StaticUISchema.ShowUIElements;
31 bool isActive = StaticUISchema.IsActive;
34 transform.gameObject.SetActive(showUIElements);
38 if(instruments.Count>0)
41 instrument.HandleAirplaneUI();
47 #region Custom Methods